System.Xml Module

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 ReadDocument function instead.

Example

This xmlstats example program prints statistics of an XML file.

Grammars

XML Grammar

Namespaces

System
Xml

Files

System.Xml/XmlApi.cm
System.Xml/XmlContentHandler.cm
System.Xml/XmlParser.cm
System.Xml/XmlParser.parser
System.Xml/XmlParserInterface.cm
System.Xml/XmlParserRules.cm
System.Xml/XmlProcessor.cm

Classes

public class RuleNames
public static class XmlParser

Functions

public nothrow List<String<char>>* GetRuleNameList()

Function Details

GetRuleNameList Function

public nothrow List<String<char>>* GetRuleNameList()

Definition
Line 102 of System.Xml/XmlParserRules.cm