I've Googled the XMLSerializer in Android, but I found it's totally different from .NET. What I need is that, from a Serializable Class, I can write them to a XML file, and then read the XML file to return the class's properties values automically.

I need that because: I'm creating a game for Android, with a lot of settings and levels, so I design them by a editor made by .NET. Now I want that the XML file can be read by both the editor (by .NET) and the game (by Java/Android SDK). The class should be totally the same (all the properties, methods, names, ...).

Thanks for reading.

有帮助吗?

解决方案

Check out this answer. Sounds similar to the jackson parser bindings, which can serialize and unserialize Java objects and beans to/from JSON.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top