I am looking for an XML parsing solution for Android besides the built-in kXML pull parser. I am trying to parse a large (4MB+) XML file downloaded from a server and the kXML parser throws an OutOfMemory error after trying to allocate a 1MB+ byte array while parsing. A good streaming XML parser shouldn't be allocating such a big array!!
The kXML v2 parser being used in Android appears to be about 7 years old. I'd like to try something else to see if it fixes my problem, ideally something that implements the same org.xmlpull.v1 interface since my code is already written against it. Woodstox looks like a good choice and it has an XMLPullParser adapter but apparently the Android engineers are making it difficult to include the javax.xml.streaming libraries. I see some rather involved "jar-jar" workarounds but I'd rather not spend a bunch of time messing around with Ant if there is an easier way. Has anyone else already gotten another XML pull parser working and can point me to it?