JadeXMLDocumentParser Class

The JadeXMLDocumentParser class is the transient class that represents the interface for parsing XML documents into a tree of objects. The parser reads an XML document and creates a tree of object nodes that are instances of the JadeXMLNode classes or user subclasses.

The JadeXMLDocumentParser class provides a more-flexible method of parsing document trees compared to the parseFile and parseString methods of the JadeXMLDocument class.

Because you can set up a mapping of user subclasses to node classes, the JadeXMLDocumentParser class enables you to parse documents into persistent trees that reside in user-specified map files.

The methods defined in the JadeXMLDocumentParser class are summarized in the following table.

Method Description
comment Receives notification of a comment
parseDocumentFile Parses an XML document file
parseDocumentString Parses an XML document string
processingInstruction Receives notification of a processing instruction
setClassMapping Sets the mapping of a JadeXMLNode class to a user subclass
startCDATA Receives notification of the start of DTD declarations