XMLReaderXMLReader is the main interface to the parser. The application must create an instance of XMLReader and register the appropriate event handlers with it. Registering Event HandlersThe following methods are used to register event handlers:
ParsingThe following are the two parse() methods:
Features and PropertiesXMLReader also offers methods to parsing options:
Similar to namespaces, feature and property names are URIs. This limits the risk that two developers would define conflicting features or properties with the same name. Parser developers are free to implement their own features and properties. The SAX2 specification defines the following standard features. The first two features are mandatory for SAX2 parsers:
|