I'm making use of an API on the internet that is marshalling objects to XML files. Given that the XSD files are also available I'd like to be able to unmarshall them back in to Java objects once I've downloaded the files.
After looking around it looks like JAXB is the default library for doing this in Java, but as I'm developing a mobile app the extra 8.6MB dependency just isn't acceptable. I also found XStream, but it still weighs in at 7.9MB.
Poking around the Android SDK it looks like the only real XML parser available is SAX.
So here's the question:
- Is there a way to get SAX to do what I want?
- Is there another tool in the Android SDK that I've missed?
- Is there another library (that's significantly smaller) that will do this?
Thanks.