FileDocCategorySizeDatePackage
XMLParser.javaAPI DocJava SE 5 API5216Fri Aug 26 14:55:54 BST 2005com.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.9 2003/05/08 20:11:59 elena 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