Parsing XML in Android (DOM method)

This is a simple example parsing twitter xml in Android

Here is the sample tweet data (one entry is one tweet)

Parsing XML with DOM method is an iterative process.
As you can see below, continuously use NodeList and Node object to explore the elements of XML document
In this example, I extracted <name> element under the <author>

Tags: , ,

One Response to “Parsing XML in Android (DOM method)”

  1. dootzky says:

    dude,this code would’ve been much more helpful if it could be copy-pasted or downloaded.
    it’s almost impossible to retype this without any errors

    but thanks anyway for the effort ;)

Leave a Reply