The SAXPrint sample parses an XML file and then prints it out. To run SAXPrint, enter the following:
To use the validating parser, use
SAXPrint has some limitations due to the SAX API. It will not display parts of the XML document which do not have a corresponding callback in the SAX API. It doesn't
display the <?XML ... ?> prologue line (this means that it cannot process its own output). It will not display comments. In addition, it will expand abbreviated empty tags like <tagname/> into a matching
<tagname> </tagname> pair. |