Android: How We Can Get The Value From Attribute From Xml String
Can anybody tell me how we can parse the following Xml. I get the following xml as response of HttpGet method. I can be store this xml in the string form.
Solution 1:
If you are using SAXParcer, see an example of sax parcer implementation:
http://mobile.tutsplus.com/tutorials/android/android-sdk-build-a-simple-sax-parser/
Please note method
publicvoid startElement(String uri, String localName, String qName,
Attributes attributes) throws SAXException
here you can check attributes and their values
if(localName.equals("outline"))
String txtValue= attributes.getValue("text");
Post a Comment for "Android: How We Can Get The Value From Attribute From Xml String"