Home » Posts tagged "android XMLPullParser"

Tag Archives: android XMLPullParser

Have a look on XmlPullParser.nextText()

With the help of XmlPullParser is an efficient and maintainable way of parsing XML on Android. Historically Android has two implementations of this interface: KXmlParser, via XmlPullParserFactory.newPullParser (). ExpatPullParser, via Xml.newPullParser (). Implementation of Xml.newPullParser () had a bug where calls to next text () does not always continue to the END_TAG as the documentation promised. May therefore certain applications work around the bug with additional calls next () or nextTag (): public void parseXml(Reader reader) throws XmlPullParserException, IOException { [...]

Tags: , ,