I need to serialize an object in XML and then save it to a file with the ability to deserialize. XMLEncoder and XMLDencoder in Androyd do not work. There is an Xml class that seems to be used for serialization, but I don’t understand how it works. Can you give examples of serialization and deserialization?

  • Try digging towards habrahabr.ru/en/post/116830 - Chubatiy
  • @Chubatiy, why should I use a third-party library if I have standard tools? - Sanych Goilo
  • If you do not want to use a third-party library, then read the documentation - developer.android.com/training/basics/network-ops/xml.html - Nikotin N
  • @NikotinN, there is reading data from Xml, the result is not objects, but strings. There is no point in this. - Sanych Goilo
  • Standard classes do not allow serialization / deserialization of XML. You either have to use a third-party library, or have to write it yourself, that is, start by читайте оф документацию - developer.android.com/training/basics/network-ops/xml.html - Vladyslav Matviienko September

0