Watch out for XmlPullParser.nextText()


e5c63 jessehawaii Watch out for XmlPullParser.nextText()

[This post is by Jesse Wilson from the Dalvik team. —Tim Bray]

Using XmlPullParser is an efficient and maintainable way to parse XML on Android. Historically Android has had two implementations of this interface:

The implementation from Xml.newPullParser() had a bug where calls to nextText() didn’t always advance to the END_TAG as the documentation promised it would. As a consequence, some apps may be working around the bug with extra calls to next() or nextTag():

    public void parseXml(Reader reader)
            throws XmlPullParserException, IOException {
  

More at google's blog

Incoming search terms:

  • android blog pullparser 4
  • android xmlpullparser rss
  • pull parsing rss feeds in android
  • rss feed parsing through xmlpullparser in android
  • xml pull parser ress feed
  • xml pull parser rss android
  • XMLPULLPARSER feedburner
Processing your request, Please wait....

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>