I'm trying to use XMLPullParser to parse a large XML document for an Android application. Often I need to re-traverse the document from the beginning.
How would I reset the parser? It seems inefficient to call getResources.getXML() repeatedly. What about calling calling setInp开发者_运维技巧ut on the parser directly to reset? Is there a code example.
If the xml document needs to be traversed multiple times, is XMLPullParser still recommended for performance concerns.
Regards
精彩评论