Reputation: 87
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.
Upvotes: 1
Views: 303
Reputation: 2942
Xstream is your friend http://x-stream.github.io/
XStream is a simple library to serialize objects to XML and back again.
Upvotes: 0
Reputation: 399
You may want to try out my XmlParsing library.
https://github.com/frenchie4111/XmlParser
Let me know if you have any problems with it.
Upvotes: 0
Reputation: 69228
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.
Upvotes: 2
Reputation: 46844
There are 3 methods for parsing XMl in android. See working with xml in android.
Upvotes: 0