The parser accepts full XML 1.0 syntax including a DTD (modulo bugs) but does not process contained DTD in any way. It recognizes only standard XML entities & , " , ' , < and > . Other entities are skipped and the SkippedEntity member function of the content handler is called for each of them.
The ParseXmlFile function parses the given XML file with a content handler. As XML file is parsed, the overridden methods of user supplied class derived from the XmlContentHandler class are called. If the XML document need to be manipulated entirely in memory, it can be parsed with the ReadDocument function instead.
Example
This xmlstats example program prints statistics of an XML file.