org.apache.xerces.parsers

Class SAXParser

Implemented Interfaces:
org.xml.sax.Parser, org.apache.xerces.xs.PSVIProvider, org.apache.xerces.xni.XMLDocumentHandler, org.apache.xerces.xni.XMLDTDContentModelHandler, org.apache.xerces.xni.XMLDTDHandler, org.xml.sax.XMLReader
Known Direct Subclasses:
SAXParserImpl.JAXPSAXParser

public class SAXParser
extends AbstractSAXParser

This is the main Xerces SAX parser class. It uses the abstract SAX parser with a document scanner, a dtd scanner, and a validator, as well as a grammar pool.
Version:
$Id: SAXParser.java 320306 2005-05-04 03:56:45Z mrglavas $
Authors:
Arnaud Le Hors, IBM
Andy Clark, IBM

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.xerces.parsers.AbstractSAXParser

AbstractSAXParser.AttributesProxy, AbstractSAXParser.LocatorProxy

Field Summary

protected static String
NOTIFY_BUILTIN_REFS
Feature identifier: notify built-in refereces.
protected static String
SYMBOL_TABLE
Property identifier: symbol table.
protected static String
XMLGRAMMAR_POOL
Property identifier: XML grammar pool.

Fields inherited from class org.apache.xerces.parsers.AbstractSAXParser

ALLOW_UE_AND_NOTATION_EVENTS, DECLARATION_HANDLER, DOM_NODE, LEXICAL_HANDLER, NAMESPACES, STRING_INTERNING, fContentHandler, fDTDHandler, fDeclHandler, fDeclaredAttrs, fDocumentHandler, fLexicalHandler, fLexicalHandlerParameterEntities, fNamespaceContext, fNamespacePrefixes, fNamespaces, fParseInProgress, fQName, fResolveDTDURIs, fStandalone, fUseEntityResolver2, fVersion, fXMLNSURIs

Fields inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser

fDTDContentModelSource, fDTDSource, fDocumentSource, fInDTD

Fields inherited from class org.apache.xerces.parsers.XMLParser

ENTITY_RESOLVER, ERROR_HANDLER, fConfiguration

Fields inherited from interface org.apache.xerces.xni.XMLDTDContentModelHandler

OCCURS_ONE_OR_MORE, OCCURS_ZERO_OR_MORE, OCCURS_ZERO_OR_ONE, SEPARATOR_CHOICE, SEPARATOR_SEQUENCE

Fields inherited from interface org.apache.xerces.xni.XMLDTDHandler

CONDITIONAL_IGNORE, CONDITIONAL_INCLUDE

Constructor Summary

SAXParser()
Constructs a SAX parser using the dtd/xml schema parser configuration.
SAXParser(SymbolTable symbolTable)
Constructs a SAX parser using the specified symbol table.
SAXParser(SymbolTable symbolTable, org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
Constructs a SAX parser using the specified symbol table and grammar pool.
SAXParser(org.apache.xerces.xni.parser.XMLParserConfiguration config)
Constructs a SAX parser using the specified parser configuration.

Method Summary

Methods inherited from class org.apache.xerces.parsers.AbstractSAXParser

attributeDecl, characters, comment, doctypeDecl, elementDecl, endCDATA, endDTD, endDocument, endElement, endExternalSubset, endGeneralEntity, endNamespaceMapping, endParameterEntity, externalEntityDecl, getAttributePSVI, getAttributePSVIByName, getContentHandler, getDTDHandler, getDeclHandler, getElementPSVI, getEntityResolver, getErrorHandler, getFeature, getLexicalHandler, getProperty, ignorableWhitespace, internalEntityDecl, notationDecl, parse, parse, processingInstruction, reset, setContentHandler, setDTDHandler, setDeclHandler, setDocumentHandler, setEntityResolver, setErrorHandler, setFeature, setLexicalHandler, setLocale, setProperty, startCDATA, startDocument, startElement, startExternalSubset, startGeneralEntity, startNamespaceMapping, startParameterEntity, unparsedEntityDecl, xmlDecl

Methods inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser

any, attributeDecl, characters, comment, doctypeDecl, element, elementDecl, empty, emptyElement, endAttlist, endCDATA, endConditional, endContentModel, endDTD, endDocument, endElement, endExternalSubset, endGeneralEntity, endGroup, endParameterEntity, externalEntityDecl, getDTDContentModelSource, getDTDSource, getDocumentSource, ignorableWhitespace, ignoredCharacters, internalEntityDecl, notationDecl, occurrence, pcdata, processingInstruction, reset, separator, setDTDContentModelSource, setDTDSource, setDocumentSource, startAttlist, startCDATA, startConditional, startContentModel, startDTD, startDocument, startElement, startExternalSubset, startGeneralEntity, startGroup, startParameterEntity, textDecl, unparsedEntityDecl, xmlDecl

Methods inherited from class org.apache.xerces.parsers.XMLParser

parse, reset

Field Details

NOTIFY_BUILTIN_REFS

protected static final String NOTIFY_BUILTIN_REFS
Feature identifier: notify built-in refereces.

SYMBOL_TABLE

protected static final String SYMBOL_TABLE
Property identifier: symbol table.

XMLGRAMMAR_POOL

protected static final String XMLGRAMMAR_POOL
Property identifier: XML grammar pool.

Constructor Details

SAXParser

public SAXParser()
Constructs a SAX parser using the dtd/xml schema parser configuration.

SAXParser

public SAXParser(SymbolTable symbolTable)
Constructs a SAX parser using the specified symbol table.

SAXParser

public SAXParser(SymbolTable symbolTable,
                 org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
Constructs a SAX parser using the specified symbol table and grammar pool.

SAXParser

public SAXParser(org.apache.xerces.xni.parser.XMLParserConfiguration config)
Constructs a SAX parser using the specified parser configuration.

Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.