public abstract class

XMLParser

extends Object
java.lang.Object
   ↳ org.apache.xerces.parsers.XMLParser
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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

Summary

Constants
String ENTITY_RESOLVER Property identifier: entity resolver.
String ERROR_HANDLER Property identifier: error handler.
Fields
protected XMLParserConfiguration fConfiguration The parser configuration.
Protected Constructors
XMLParser(XMLParserConfiguration config)
Default Constructor.
Public Methods
void parse(XMLInputSource inputSource)
parse
Protected Methods
void reset()
reset all components before parsing
[Expand]
Inherited Methods
From class java.lang.Object

Constants

protected static final String ENTITY_RESOLVER

Property identifier: entity resolver.

Constant Value: "http://apache.org/xml/properties/internal/entity-resolver"

protected static final String ERROR_HANDLER

Property identifier: error handler.

Constant Value: "http://apache.org/xml/properties/internal/error-handler"

Fields

protected XMLParserConfiguration fConfiguration

The parser configuration.

Protected Constructors

protected XMLParser (XMLParserConfiguration config)

Default Constructor.

Public Methods

public void parse (XMLInputSource inputSource)

parse

Throws
XNIException
IOException
XNIException

Protected Methods

protected void reset ()

reset all components before parsing

Throws
XNIException