FileDocCategorySizeDatePackage
XMLParser.javaAPI DocJava SE 6 API3150Tue Jun 10 00:22:50 BST 2008com.sun.org.apache.xerces.internal.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,v 1.2.6.1 2005/09/08 04:05:10 sunithareddy Exp $

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 XMLParserConfiguration
fConfiguration
The parser configuration.
Constructors Summary
protected XMLParser(XMLParserConfiguration config)
Default Constructor.


    //
    // Constructors
    //

           
       

        // save configuration
        fConfiguration = config;

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

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

param
inputSource
exception
XNIException
exception
java.io.IOException


        reset();
        fConfiguration.parse(inputSource);

    
protected voidreset()
reset all components before parsing