Serializing XML Objects on Android

I would like to serialize an object for XML inside Android.

Any suggested libs?

PS: I already tried XStream, but it does not serialize enums correctly with Android. Problem here: Serialization issue with Enums on Android

+3
source share
3 answers

Unfortunately, I don't think there is a good solution for serializing XML objects in Android. Most existing solutions are too heavy to use in mobile applications and depend on what Android does not support.

For an overview of XML options, see working with xml on Android .

+2
source
+7

XML, Google GSON . , Serializable:

JSON , . Android API, API JSON. , GSON, Java.

+1

Source: https://habr.com/ru/post/1761981/


All Articles