JadeXMLParser Class

The JadeXMLParser class is the abstract transient class that defines behavior for parsing XML documents.

The parser reads an XML document and reports basic document-related events; for example, the start and end of elements and character data.

The order of events is very important, and mirrors the order of information in the document itself. For example, all contents of a JadeXMLElement (that is, character data, processing instructions, and any sub-elements) appear in order between the startElement event method and the corresponding endElement event method.

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

Method Description
characters Receives notification of character data
columnNumber Returns the column number at which the current document event ends
comment Receives notification of a comment
endCDATA Receives notification of the end of a CDATA section
endDTD Receives notification of the end of DTD declarations
endElement Receives notification of the end of an element
fileName Returns the file name for the current document event
getAttribute Retrieves the attribute with the specified index
getAttributeValueByName Retrieves the value of the attribute with the specified qualified name
getAttributeValueByNameNS Retrieves the value of the attribute with the specified namespace URI and local name
lineNumber Returns the line number at which the current document event ends
parseFile Parses the specified XML document file
parseString Parses the specified XML document string
processingInstruction Receives notification of a processing instruction
startCDATA Receives notification of the start of a CDATA section
startDTD Receives notification of the start of DTD declarations
startElement Receives notification of the beginning of an element

For details, see "JadeXMLParser Class", in Chapter 1 of the JADE Encyclopaedia of Classes.