org.apache.xerces.parsers

Class XMLParser

Known Direct Subclasses:
AbstractXMLDocumentParser, XMLGrammarParser

public abstract class XMLParser
extends java.lang.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:

Version:
$Id: XMLParser.java,v 1.10 2004/02/24 23:15:57 mrglavas Exp $
Authors:
Arnaud Le Hors, IBM
Andy Clark, IBM

Field Summary

protected static String
ENTITY_RESOLVER
Property identifier: entity resolver.
protected static String
ERROR_HANDLER
Property identifier: error handler.
protected org.apache.xerces.xni.parser.XMLParserConfiguration
fConfiguration
The parser configuration.

Constructor Summary

XMLParser(org.apache.xerces.xni.parser.XMLParserConfiguration config)
Default Constructor.

Method Summary

void
parse(org.apache.xerces.xni.parser.XMLInputSource inputSource)
parse
protected void
reset()
reset all components before parsing

Field Details

ENTITY_RESOLVER

protected static final String ENTITY_RESOLVER
Property identifier: entity resolver.

ERROR_HANDLER

protected static final String ERROR_HANDLER
Property identifier: error handler.

fConfiguration

protected org.apache.xerces.xni.parser.XMLParserConfiguration fConfiguration
The parser configuration.

Constructor Details

XMLParser

protected XMLParser(org.apache.xerces.xni.parser.XMLParserConfiguration config)
Default Constructor.

Method Details

parse

public void parse(org.apache.xerces.xni.parser.XMLInputSource inputSource)
            throws org.apache.xerces.xni.XNIException,
                   IOException
parse
Parameters:
inputSource -
Throws:
org.apache.xerces.xni.XNIException -

reset

protected void reset()
            throws org.apache.xerces.xni.XNIException
reset all components before parsing

Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.