Hi there!
Is there any way to parse a xml string using Android SAX?
Thanks in advance, Best regards!
Hi there!
Is there any way to parse a xml string using Android SAX?
Thanks in advance, Best regards!
Yes, first define a SAX ContentHandler:
class MyXmlContentHandler extends DefaultHandler {
... // implement SAX callbacks here
}
then you can use the Xml utility class:
Xml.parse(xmlString, new MyXmlContentHandler());