views:

339

answers:

2

Hi Everyone. 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

A: 

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.

Paul Morie
Thanks. I didn't know that XMLBeans was so bloated. Normally I use it in a server environment where performance isn't that big of an issue, so I never thought about it.
Robbie
A: 

Probably if you lok at android source to see what DOM parsing they use as the webkit browser is in java code not C++ than yu might have a more clear answer.

Fred Grott