Search code examples
javaxmlandroidxmlbeans

Using XMLBeans on Android


I was just wondering if anyone had any success in getting XMLBeans (or any other generator) to work on android. It would be very nice if I could use it because I have a very large schema that I would rather not write all the classes by hand.

I had asked about this on the android developers mailing list, but no one responded. This tells me that either they don't care, or no one feels like telling me its not possible.

If anyone knows of anything else like XMLBeans that works for android, please let me know. It would be very helpful.

Thanks, Robbie


Solution

  • If you're looking to do class generation and DOM parsing, XMLBeans is probably pretty heavy-weight for a mobile device running android. All of the code generated by XMLBeans makes synchronized calls into an underlying data store that I've seen as a hot spot several times when profiling.

    I can't suggest any alternatives, but I would be wary of using this even if you could get it to work, because of the afore mentioned performance issue.