I’m having a problem with parsing XML in Android app, a question here implies that there are 4 types of XML parsing mechanism advised:
– SAX
– DOM
– XmlPullParser
– Simple XML Framework
While Simple Framework is amazing and I was already working with it I hit a dead end when I found out it can’t support @Text and @Element in the same class, which sucks because I can’t change my XML Scheme.
So ideas are appreciated and any advises will be great.
Well after researching for a long time I found the best XML parser suited to my needs was the JAXB Parser.
An Example to show how easy it is to use:
So that was the best I came up with.
Any additions are welcome 🙂