Yaaga
Yaaga

Reputation: 87

Xml parsing in android

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

Answers (4)

androidworkz
androidworkz

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

frenchie4111
frenchie4111

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

Konstantin Burov
Konstantin Burov

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

Cheryl Simon
Cheryl Simon

Reputation: 46844

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

Upvotes: 0

Related Questions