FileDocCategorySizeDatePackage
XMLParser.javaAPI DocApache Xerces 3.0.13358Fri Sep 14 20:33:54 BST 2007org.apache.xerces.parsers

XMLParser

public abstract class XMLParser extends Object
Base class of all XML-related parsers.

In addition to the features and properties recognized by the parser configuration, this parser recognizes these additional features and properties:

  • Properties
    • http://apache.org/xml/properties/internal/error-handler
    • http://apache.org/xml/properties/internal/entity-resolver
author
Arnaud Le Hors, IBM
author
Andy Clark, IBM
version
$Id: XMLParser.java 447239 2006-09-18 05:08:26Z mrglavas $

Fields Summary
protected static final String
ENTITY_RESOLVER
Property identifier: entity resolver.
protected static final String
ERROR_HANDLER
Property identifier: error handler.
private static final String[]
RECOGNIZED_PROPERTIES
Recognized properties.
protected org.apache.xerces.xni.parser.XMLParserConfiguration
fConfiguration
The parser configuration.
Constructors Summary
protected XMLParser(org.apache.xerces.xni.parser.XMLParserConfiguration config)
Default Constructor.


    //
    // Constructors
    //

           
       

        // save configuration
        fConfiguration = config;

        // add default recognized properties
        fConfiguration.addRecognizedProperties(RECOGNIZED_PROPERTIES);

    
Methods Summary
public voidparse(org.apache.xerces.xni.parser.XMLInputSource inputSource)
parse

param
inputSource
exception
XNIException
exception
java.io.IOException


        reset();
        fConfiguration.parse(inputSource);

    
protected voidreset()
reset all components before parsing