Q:

How to parse Xml in android?

I have an XML Document I want to create a method that will parse the XML which is in Document format to String and return the Strings . How can I do this..Please help me out as I am very new to Android and XML as well.Thanks in advance.
I am trying to do something like this----
public static String getStringFromXML(Document doc){
String data;
................
................
................
...............
return data;
}

A:

Look at this article there are several examples on howto use SAX, DOM and PULL parsers
Working with XML on Android

