tags:

views:

57

answers:

3

Hi Friends,

In android app, i want to send a php requeset, and am expecting a response in the form of xml, from the server.

Can anybody provide pointers in this case.

+2  A: 

You can use XmlPullParser bundled with android to parse the response. To get the parser instance use this snippet:

XmlPullParser pullParser = XmlPullParserFactory.newInstance().newPullParser();
pullParser.setInput(...); //Set input source with response you parsing.
Konstantin Burov
You'd mis-spelled XmlPullParser as XmlPullarser, fixed :)
Chinmay Kanchi
Neat, thank you :)
Konstantin Burov
A: 

There are 3 methods for parsing XMl in android. See working with xml in android.

Mayra
A: 

Xstream is your friend http://xstream.codehaus.org/

androidworkz