Skip to content Skip to sidebar Skip to footer

Parse Xml String Using Sax

Is there any way to parse an XML string using Android SAX?

Solution 1:

Yes, first define a SAX ContentHandler:

classMyXmlContentHandlerextendsDefaultHandler{
   ... // implement SAX callbacks here
}

then you can use the Xml utility class:

Xml.parse(xmlString, newMyXmlContentHandler());

Post a Comment for "Parse Xml String Using Sax"