The System.Xml module contains an implementation of a non-validating XML parser and a SAX -like API to it.
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 ParseXmlDocument function instead.
This xmlstats example program prints statistics of an XML file.
System | |
Xml |
System.Xml/XmlContentHandler.cm |
System.Xml/XmlParser.cm |
System.Xml/XmlProcessor.cm |
System.Xml/xml.parser.cm |