org.apache.xerces.parsers

Class AbstractSAXParser

public abstract class AbstractSAXParser extends AbstractXMLDocumentParser implements PSVIProvider, Parser, XMLReader

This is the base class of all SAX parsers. It implements both the SAX1 and SAX2 parser functionality, while the actual pipeline is defined in the parser configuration.

Version: $Id: AbstractSAXParser.java,v 1.59 2005/06/24 02:33:43 mrglavas Exp $

Author: Arnaud Le Hors, IBM Andy Clark, IBM

Nested Class Summary
protected static classAbstractSAXParser.AttributesProxy
protected classAbstractSAXParser.LocatorProxy
Field Summary
protected static StringALLOW_UE_AND_NOTATION_EVENTS
Feature identifier: allow notation and unparsed entity events to be sent out of order.
protected static StringDECLARATION_HANDLER
Property id: declaration handler.
protected static StringDOM_NODE
Property id: DOM node.
protected ContentHandlerfContentHandler
Content handler.
protected SymbolHashfDeclaredAttrs
protected DeclHandlerfDeclHandler
Decl handler.
protected DocumentHandlerfDocumentHandler
Document handler.
protected DTDHandlerfDTDHandler
DTD handler.
protected LexicalHandlerfLexicalHandler
Lexical handler.
protected booleanfLexicalHandlerParameterEntities
Lexical handler parameter entities.
protected NamespaceContextfNamespaceContext
Namespace context
protected booleanfNamespacePrefixes
Namespace prefixes.
protected booleanfNamespaces
Namespaces.
protected booleanfParseInProgress
True if a parse is in progress.
protected QNamefQName
protected booleanfResolveDTDURIs
Resolve DTD URIs.
protected booleanfStandalone
Standalone document declaration.
protected booleanfUseEntityResolver2
Use EntityResolver2.
protected StringfVersion
protected booleanfXMLNSURIs
XMLNS URIs: Namespace declarations in the http://www.w3.org/2000/xmlns/ namespace.
protected static StringLEXICAL_HANDLER
Property id: lexical handler.
protected static StringNAMESPACES
Feature identifier: namespaces.
protected static StringNAMESPACE_PREFIXES
Feature identifier: namespace prefixes.
protected static StringSTRING_INTERNING
Feature id: string interning.
Constructor Summary
protected AbstractSAXParser(XMLParserConfiguration config)
Default constructor.
Method Summary
voidattributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augs)
An attribute declaration.
voidcharacters(XMLString text, Augmentations augs)
Character content.
voidcomment(XMLString text, Augmentations augs)
A comment.
voiddoctypeDecl(String rootElement, String publicId, String systemId, Augmentations augs)
Notifies of the presence of the DOCTYPE line in the document.
voidelementDecl(String name, String contentModel, Augmentations augs)
An element declaration.
voidendCDATA(Augmentations augs)
The end of a CDATA section.
voidendDocument(Augmentations augs)
The end of the document.
voidendDTD(Augmentations augs)
The end of the DTD.
voidendElement(QName element, Augmentations augs)
The end of an element.
voidendExternalSubset(Augmentations augs)
The end of the DTD external subset.
voidendGeneralEntity(String name, Augmentations augs)
This method notifies the end of an entity.
protected voidendNamespaceMapping()
Send endPrefixMapping events
voidendParameterEntity(String name, Augmentations augs)
This method notifies the end of an entity.
voidexternalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augs)
An external entity declaration.
AttributePSVIgetAttributePSVI(int index)
AttributePSVIgetAttributePSVIByName(String uri, String localname)
ContentHandlergetContentHandler()
Return the current content handler.
protected DeclHandlergetDeclHandler()
Returns the DTD declaration event handler.
DTDHandlergetDTDHandler()
Return the current DTD handler.
ElementPSVIgetElementPSVI()
EntityResolvergetEntityResolver()
Return the current entity resolver.
ErrorHandlergetErrorHandler()
Return the current error handler.
booleangetFeature(String featureId)
Query the state of a feature.
protected LexicalHandlergetLexicalHandler()
Returns the lexical handler.
ObjectgetProperty(String propertyId)
Query the value of a property.
voidignorableWhitespace(XMLString text, Augmentations augs)
Ignorable whitespace.
voidinternalEntityDecl(String name, XMLString text, XMLString nonNormalizedText, Augmentations augs)
An internal entity declaration.
voidnotationDecl(String name, XMLResourceIdentifier identifier, Augmentations augs)
A notation declaration
voidparse(String systemId)
Parses the input source specified by the given system identifier.
voidparse(InputSource inputSource)
parse
voidprocessingInstruction(String target, XMLString data, Augmentations augs)
A processing instruction.
voidreset()
Reset all components before parsing.
voidsetContentHandler(ContentHandler contentHandler)
Allow an application to register a content event handler.
protected voidsetDeclHandler(DeclHandler handler)
Set the DTD declaration event handler.
voidsetDocumentHandler(DocumentHandler documentHandler)
Allow an application to register a document event handler.
voidsetDTDHandler(DTDHandler dtdHandler)
Allow an application to register a DTD event handler.
voidsetEntityResolver(EntityResolver resolver)
Sets the resolver used to resolve external entities.
voidsetErrorHandler(ErrorHandler errorHandler)
Allow an application to register an error event handler.
voidsetFeature(String featureId, boolean state)
Set the state of any feature in a SAX2 parser.
protected voidsetLexicalHandler(LexicalHandler handler)
Set the lexical event handler.
voidsetLocale(Locale locale)
Set the locale to use for messages.
voidsetProperty(String propertyId, Object value)
Set the value of any property in a SAX2 parser.
voidstartCDATA(Augmentations augs)
The start of a CDATA section.
voidstartDocument(XMLLocator locator, String encoding, NamespaceContext namespaceContext, Augmentations augs)
The start of the document.
voidstartElement(QName element, XMLAttributes attributes, Augmentations augs)
The start of an element.
voidstartExternalSubset(XMLResourceIdentifier identifier, Augmentations augs)
The start of the DTD external subset.
voidstartGeneralEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs)
This method notifies of the start of an entity.
protected voidstartNamespaceMapping()
Send startPrefixMapping events
voidstartParameterEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs)
This method notifies of the start of parameter entity.
voidunparsedEntityDecl(String name, XMLResourceIdentifier identifier, String notation, Augmentations augs)
An unparsed entity declaration.
voidxmlDecl(String version, String encoding, String standalone, Augmentations augs)
Notifies of the presence of an XMLDecl line in the document.

Field Detail

ALLOW_UE_AND_NOTATION_EVENTS

protected static final String ALLOW_UE_AND_NOTATION_EVENTS
Feature identifier: allow notation and unparsed entity events to be sent out of order.

DECLARATION_HANDLER

protected static final String DECLARATION_HANDLER
Property id: declaration handler.

DOM_NODE

protected static final String DOM_NODE
Property id: DOM node.

fContentHandler

protected ContentHandler fContentHandler
Content handler.

fDeclaredAttrs

protected SymbolHash fDeclaredAttrs

fDeclHandler

protected DeclHandler fDeclHandler
Decl handler.

fDocumentHandler

protected DocumentHandler fDocumentHandler
Document handler.

fDTDHandler

protected DTDHandler fDTDHandler
DTD handler.

fLexicalHandler

protected LexicalHandler fLexicalHandler
Lexical handler.

fLexicalHandlerParameterEntities

protected boolean fLexicalHandlerParameterEntities
Lexical handler parameter entities.

fNamespaceContext

protected NamespaceContext fNamespaceContext
Namespace context

fNamespacePrefixes

protected boolean fNamespacePrefixes
Namespace prefixes.

fNamespaces

protected boolean fNamespaces
Namespaces.

fParseInProgress

protected boolean fParseInProgress
True if a parse is in progress. This state is needed because some features/properties cannot be set while parsing (e.g. validation and namespaces).

fQName

protected QName fQName

fResolveDTDURIs

protected boolean fResolveDTDURIs
Resolve DTD URIs.

fStandalone

protected boolean fStandalone
Standalone document declaration.

fUseEntityResolver2

protected boolean fUseEntityResolver2
Use EntityResolver2.

fVersion

protected String fVersion

fXMLNSURIs

protected boolean fXMLNSURIs
XMLNS URIs: Namespace declarations in the http://www.w3.org/2000/xmlns/ namespace.

LEXICAL_HANDLER

protected static final String LEXICAL_HANDLER
Property id: lexical handler.

NAMESPACES

protected static final String NAMESPACES
Feature identifier: namespaces.

NAMESPACE_PREFIXES

protected static final String NAMESPACE_PREFIXES
Feature identifier: namespace prefixes.

STRING_INTERNING

protected static final String STRING_INTERNING
Feature id: string interning.

Constructor Detail

AbstractSAXParser

protected AbstractSAXParser(XMLParserConfiguration config)
Default constructor.

Method Detail

attributeDecl

public void attributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augs)
An attribute declaration.

Parameters: elementName The name of the element that this attribute is associated with. attributeName The name of the attribute. type The attribute type. This value will be one of the following: "CDATA", "ENTITY", "ENTITIES", "ENUMERATION", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", or "NOTATION". enumeration If the type has the value "ENUMERATION" or "NOTATION", this array holds the allowed attribute values; otherwise, this array is null. defaultType The attribute default type. This value will be one of the following: "#FIXED", "#IMPLIED", "#REQUIRED", or null. defaultValue The attribute default value, or null if no default value is specified. nonNormalizedDefaultValue The attribute default value with no normalization performed, or null if no default value is specified. augs Additional information that may include infoset augmentations.

Throws: XNIException Thrown by handler to signal an error.

characters

public void characters(XMLString text, Augmentations augs)
Character content.

Parameters: text The content. augs Additional information that may include infoset augmentations

Throws: XNIException Thrown by handler to signal an error.

comment

public void comment(XMLString text, Augmentations augs)
A comment.

Parameters: text The text in the comment. augs Additional information that may include infoset augmentations

Throws: XNIException Thrown by application to signal an error.

doctypeDecl

public void doctypeDecl(String rootElement, String publicId, String systemId, Augmentations augs)
Notifies of the presence of the DOCTYPE line in the document.

Parameters: rootElement The name of the root element. publicId The public identifier if an external DTD or null if the external DTD is specified using SYSTEM. systemId The system identifier if an external DTD, null otherwise. augs Additional information that may include infoset augmentations

Throws: XNIException Thrown by handler to signal an error.

elementDecl

public void elementDecl(String name, String contentModel, Augmentations augs)
An element declaration.

Parameters: name The name of the element. contentModel The element content model. augs Additional information that may include infoset augmentations.

Throws: XNIException Thrown by handler to signal an error.

endCDATA

public void endCDATA(Augmentations augs)
The end of a CDATA section.

Parameters: augs Additional information that may include infoset augmentations

Throws: XNIException Thrown by handler to signal an error.

endDocument

public void endDocument(Augmentations augs)
The end of the document.

Parameters: augs Additional information that may include infoset augmentations

Throws: XNIException Thrown by handler to signal an error.

endDTD

public void endDTD(Augmentations augs)
The end of the DTD.

Parameters: augs Additional information that may include infoset augmentations.

Throws: XNIException Thrown by handler to signal an error.

endElement

public void endElement(QName element, Augmentations augs)
The end of an element.

Parameters: element The name of the element. augs Additional information that may include infoset augmentations

Throws: XNIException Thrown by handler to signal an error.

endExternalSubset

public void endExternalSubset(Augmentations augs)
The end of the DTD external subset.

Parameters: augs Additional information that may include infoset augmentations.

Throws: XNIException Thrown by handler to signal an error.

endGeneralEntity

public void endGeneralEntity(String name, Augmentations augs)
This method notifies the end of an entity. The DTD has the pseudo-name of "[dtd]" parameter entity names start with '%'; and general entity names are just the entity name.

Note: Since the document is an entity, the handler will be notified of the end of the document entity by calling the endEntity method with the entity name "[xml]" after calling the endDocument method. When exposing entity boundaries through the SAX API, the document entity is never reported, however.

Note: This method is not called for entity references appearing as part of attribute values.

Parameters: name The name of the entity. augs Additional information that may include infoset augmentations

Throws: XNIException Thrown by handler to signal an error.

endNamespaceMapping

protected final void endNamespaceMapping()
Send endPrefixMapping events

endParameterEntity

public void endParameterEntity(String name, Augmentations augs)
This method notifies the end of an entity. The DTD has the pseudo-name of "[dtd]" parameter entity names start with '%'; and general entity names are just the entity name.

Note: Since the document is an entity, the handler will be notified of the end of the document entity by calling the endEntity method with the entity name "[xml]" after calling the endDocument method. When exposing entity boundaries through the SAX API, the document entity is never reported, however.

Note: This method is not called for entity references appearing as part of attribute values.

Parameters: name The name of the parameter entity. augs Additional information that may include infoset augmentations.

Throws: XNIException Thrown by handler to signal an error.

externalEntityDecl

public void externalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augs)
An external entity declaration.

Parameters: name The name of the entity. Parameter entity names start with '%', whereas the name of a general entity is just the entity name. identifier An object containing all location information pertinent to this entity. augs Additional information that may include infoset augmentations.

Throws: XNIException Thrown by handler to signal an error.

getAttributePSVI

public AttributePSVI getAttributePSVI(int index)

getAttributePSVIByName

public AttributePSVI getAttributePSVIByName(String uri, String localname)

getContentHandler

public ContentHandler getContentHandler()
Return the current content handler.

Returns: The current content handler, or null if none has been registered.

See Also: AbstractSAXParser

getDeclHandler

protected DeclHandler getDeclHandler()
Returns the DTD declaration event handler.

See Also: AbstractSAXParser

getDTDHandler

public DTDHandler getDTDHandler()
Return the current DTD handler.

Returns: The current DTD handler, or null if none has been registered.

See Also: AbstractSAXParser

getElementPSVI

public ElementPSVI getElementPSVI()

getEntityResolver

public EntityResolver getEntityResolver()
Return the current entity resolver.

Returns: The current entity resolver, or null if none has been registered.

See Also: AbstractSAXParser

getErrorHandler

public ErrorHandler getErrorHandler()
Return the current error handler.

Returns: The current error handler, or null if none has been registered.

See Also: AbstractSAXParser

getFeature

public boolean getFeature(String featureId)
Query the state of a feature. Query the current state of any feature in a SAX2 parser. The parser might not recognize the feature.

Parameters: featureId The unique identifier (URI) of the feature being set.

Returns: The current state of the feature.

Throws: org.xml.sax.SAXNotRecognizedException If the requested feature is not known. SAXNotSupportedException If the requested feature is known but not supported.

getLexicalHandler

protected LexicalHandler getLexicalHandler()
Returns the lexical handler.

See Also: AbstractSAXParser

getProperty

public Object getProperty(String propertyId)
Query the value of a property. Return the current value of a property in a SAX2 parser. The parser might not recognize the property.

Parameters: propertyId The unique identifier (URI) of the property being set.

Returns: The current value of the property.

Throws: org.xml.sax.SAXNotRecognizedException If the requested property is not known. SAXNotSupportedException If the requested property is known but not supported.

ignorableWhitespace

public void ignorableWhitespace(XMLString text, Augmentations augs)
Ignorable whitespace. For this method to be called, the document source must have some way of determining that the text containing only whitespace characters should be considered ignorable. For example, the validator can determine if a length of whitespace characters in the document are ignorable based on the element content model.

Parameters: text The ignorable whitespace. augs Additional information that may include infoset augmentations

Throws: XNIException Thrown by handler to signal an error.

internalEntityDecl

public void internalEntityDecl(String name, XMLString text, XMLString nonNormalizedText, Augmentations augs)
An internal entity declaration.

Parameters: name The name of the entity. Parameter entity names start with '%', whereas the name of a general entity is just the entity name. text The value of the entity. nonNormalizedText The non-normalized value of the entity. This value contains the same sequence of characters that was in the internal entity declaration, without any entity references expanded. augs Additional information that may include infoset augmentations.

Throws: XNIException Thrown by handler to signal an error.

notationDecl

public void notationDecl(String name, XMLResourceIdentifier identifier, Augmentations augs)
A notation declaration

Parameters: name The name of the notation. identifier An object containing all location information pertinent to this notation. augs Additional information that may include infoset augmentations.

Throws: XNIException Thrown by handler to signal an error.

parse

public void parse(String systemId)
Parses the input source specified by the given system identifier.

This method is equivalent to the following:

     parse(new InputSource(systemId));
 

Parameters: systemId The system identifier (URI).

Throws: org.xml.sax.SAXException Throws exception on SAX error. java.io.IOException Throws exception on i/o error.

parse

public void parse(InputSource inputSource)
parse

Parameters: inputSource

Throws: org.xml.sax.SAXException java.io.IOException

processingInstruction

public void processingInstruction(String target, XMLString data, Augmentations augs)
A processing instruction. Processing instructions consist of a target name and, optionally, text data. The data is only meaningful to the application.

Typically, a processing instruction's data will contain a series of pseudo-attributes. These pseudo-attributes follow the form of element attributes but are not parsed or presented to the application as anything other than text. The application is responsible for parsing the data.

Parameters: target The target. data The data or null if none specified. augs Additional information that may include infoset augmentations

Throws: XNIException Thrown by handler to signal an error.

reset

public void reset()
Reset all components before parsing.

Throws: XNIException Thrown if an error occurs during initialization.

setContentHandler

public void setContentHandler(ContentHandler contentHandler)
Allow an application to register a content event handler.

If the application does not register a content handler, all content events reported by the SAX parser will be silently ignored.

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.

Parameters: contentHandler The content handler.

See Also: AbstractSAXParser

setDeclHandler

protected void setDeclHandler(DeclHandler handler)
Set the DTD declaration event handler.

This method is the equivalent to the property:

 http://xml.org/sax/properties/declaration-handler
 

Parameters: handler The new handler.

See Also: AbstractSAXParser AbstractSAXParser

setDocumentHandler

public void setDocumentHandler(DocumentHandler documentHandler)
Allow an application to register a document event handler.

If the application does not register a document handler, all document events reported by the SAX parser will be silently ignored (this is the default behaviour implemented by HandlerBase).

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.

Parameters: documentHandler The document handler.

setDTDHandler

public void setDTDHandler(DTDHandler dtdHandler)
Allow an application to register a DTD event handler.

If the application does not register a DTD handler, all DTD events reported by the SAX parser will be silently ignored.

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.

Parameters: dtdHandler The DTD handler.

See Also: AbstractSAXParser

setEntityResolver

public void setEntityResolver(EntityResolver resolver)
Sets the resolver used to resolve external entities. The EntityResolver interface supports resolution of public and system identifiers.

Parameters: resolver The new entity resolver. Passing a null value will uninstall the currently installed resolver.

setErrorHandler

public void setErrorHandler(ErrorHandler errorHandler)
Allow an application to register an error event handler.

If the application does not register an error handler, all error events reported by the SAX parser will be silently ignored; however, normal processing may not continue. It is highly recommended that all SAX applications implement an error handler to avoid unexpected bugs.

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.

Parameters: errorHandler The error handler.

See Also: AbstractSAXParser

setFeature

public void setFeature(String featureId, boolean state)
Set the state of any feature in a SAX2 parser. The parser might not recognize the feature, and if it does recognize it, it might not be able to fulfill the request.

Parameters: featureId The unique identifier (URI) of the feature. state The requested state of the feature (true or false).

Throws: SAXNotRecognizedException If the requested feature is not known. SAXNotSupportedException If the requested feature is known, but the requested state is not supported.

setLexicalHandler

protected void setLexicalHandler(LexicalHandler handler)
Set the lexical event handler.

This method is the equivalent to the property:

 http://xml.org/sax/properties/lexical-handler
 

Parameters: handler lexical event handler

See Also: AbstractSAXParser AbstractSAXParser

setLocale

public void setLocale(Locale locale)
Set the locale to use for messages.

Parameters: locale The locale object to use for localization of messages.

Throws: SAXException An exception thrown if the parser does not support the specified locale.

See Also: org.xml.sax.Parser

setProperty

public void setProperty(String propertyId, Object value)
Set the value of any property in a SAX2 parser. The parser might not recognize the property, and if it does recognize it, it might not support the requested value.

Parameters: propertyId The unique identifier (URI) of the property being set. value The value to which the property is being set.

Throws: SAXNotRecognizedException If the requested property is not known. SAXNotSupportedException If the requested property is known, but the requested value is not supported.

startCDATA

public void startCDATA(Augmentations augs)
The start of a CDATA section.

Parameters: augs Additional information that may include infoset augmentations

Throws: XNIException Thrown by handler to signal an error.

startDocument

public void startDocument(XMLLocator locator, String encoding, NamespaceContext namespaceContext, Augmentations augs)
The start of the document.

Parameters: locator The document locator, or null if the document location cannot be reported during the parsing of this document. However, it is strongly recommended that a locator be supplied that can at least report the system identifier of the document. encoding The auto-detected IANA encoding name of the entity stream. This value will be null in those situations where the entity encoding is not auto-detected (e.g. internal entities or a document entity that is parsed from a java.io.Reader). namespaceContext The namespace context in effect at the start of this document. This object represents the current context. Implementors of this class are responsible for copying the namespace bindings from the the current context (and its parent contexts) if that information is important. augs Additional information that may include infoset augmentations

Throws: XNIException Thrown by handler to signal an error.

startElement

public void startElement(QName element, XMLAttributes attributes, Augmentations augs)
The start of an element. If the document specifies the start element by using an empty tag, then the startElement method will immediately be followed by the endElement method, with no intervening methods.

Parameters: element The name of the element. attributes The element attributes. augs Additional information that may include infoset augmentations

Throws: XNIException Thrown by handler to signal an error.

startExternalSubset

public void startExternalSubset(XMLResourceIdentifier identifier, Augmentations augs)
The start of the DTD external subset.

Parameters: augs Additional information that may include infoset augmentations.

Throws: XNIException Thrown by handler to signal an error.

startGeneralEntity

public void startGeneralEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs)
This method notifies of the start of an entity. The DTD has the pseudo-name of "[dtd]" parameter entity names start with '%'; and general entity names are just the entity name.

Note: Since the document is an entity, the handler will be notified of the start of the document entity by calling the startEntity method with the entity name "[xml]" before calling the startDocument method. When exposing entity boundaries through the SAX API, the document entity is never reported, however.

Note: This method is not called for entity references appearing as part of attribute values.

Parameters: name The name of the entity. identifier The resource identifier. encoding The auto-detected IANA encoding name of the entity stream. This value will be null in those situations where the entity encoding is not auto-detected (e.g. internal parameter entities). augs Additional information that may include infoset augmentations

Throws: XNIException Thrown by handler to signal an error.

startNamespaceMapping

protected final void startNamespaceMapping()
Send startPrefixMapping events

startParameterEntity

public void startParameterEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs)
This method notifies of the start of parameter entity. The DTD has the pseudo-name of "[dtd]" parameter entity names start with '%'; and general entity names are just the entity name.

Note: Since the document is an entity, the handler will be notified of the start of the document entity by calling the startEntity method with the entity name "[xml]" before calling the startDocument method. When exposing entity boundaries through the SAX API, the document entity is never reported, however.

Note: This method is not called for entity references appearing as part of attribute values.

Parameters: name The name of the parameter entity. identifier The resource identifier. encoding The auto-detected IANA encoding name of the entity stream. This value will be null in those situations where the entity encoding is not auto-detected (e.g. internal parameter entities). augs Additional information that may include infoset augmentations.

Throws: XNIException Thrown by handler to signal an error.

unparsedEntityDecl

public void unparsedEntityDecl(String name, XMLResourceIdentifier identifier, String notation, Augmentations augs)
An unparsed entity declaration.

Parameters: name The name of the entity. identifier An object containing all location information pertinent to this entity. notation The name of the notation. augs Additional information that may include infoset augmentations.

Throws: XNIException Thrown by handler to signal an error.

xmlDecl

public void xmlDecl(String version, String encoding, String standalone, Augmentations augs)
Notifies of the presence of an XMLDecl line in the document. If present, this method will be called immediately following the startDocument call.

Parameters: version The XML version. encoding The IANA encoding name of the document, or null if not specified. standalone The standalone value, or null if not specified. augs Additional information that may include infoset augmentations

Throws: XNIException Thrown by handler to signal an error.

Copyright © 1999-2005 Apache XML Project. All Rights Reserved.