This is a pipeline component which performs XInclude handling, according to the
W3C specification for XML Inclusions.
This component analyzes each event in the pipeline, looking for <include>
elements. An <include> element is one which has a namespace of
http://www.w3.org/2001/XInclude
and a localname of
include
.
When it finds an <include> element, it attempts to include the file specified
in the
href
attribute of the element. If inclusion succeeds, all
children of the <include> element are ignored (with the exception of
checking for invalid children as outlined in the specification). If the inclusion
fails, the <fallback> child of the <include> element is processed.
See the
XInclude specification for
more information on how XInclude is to be used.
This component requires the following features and properties from the
component manager that uses it:
- http://xml.org/sax/features/allow-dtd-events-after-endDTD
- http://apache.org/xml/properties/internal/error-reporter
- http://apache.org/xml/properties/internal/entity-resolver
Optional property:
- http://apache.org/xml/properties/input-buffer-size
Furthermore, the
NamespaceContext
used in the pipeline is required
to be an instance of
XIncludeNamespaceSupport
.
Currently, this implementation has only partial support for the XInclude specification.
Specifically, it is missing support for XPointer document fragments. Thus, only whole
documents can be included using this component in the pipeline.
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.
BUFFER_SIZE
protected static final String BUFFER_SIZE
property identifier: buffer size.
CURRENT_BASE_URI
public static final String CURRENT_BASE_URI
The identifier for the Augmentation that contains the current base URI
DYNAMIC_VALIDATION
protected static final String DYNAMIC_VALIDATION
Feature identifier: dynamic validation.
ENTITY_RESOLVER
protected static final String ENTITY_RESOLVER
Property identifier: entity resolver.
ERROR_REPORTER
protected static final String ERROR_REPORTER
Property identifier: error reporter.
HTTP_ACCEPT
public static final String HTTP_ACCEPT
HTTP_ACCEPT_LANGUAGE
public static final String HTTP_ACCEPT_LANGUAGE
PARSER_SETTINGS
protected static final String PARSER_SETTINGS
SCHEMA_VALIDATION
protected static final String SCHEMA_VALIDATION
Feature identifier: schema validation.
SECURITY_MANAGER
protected static final String SECURITY_MANAGER
property identifier: security manager.
SYMBOL_TABLE
protected static final String SYMBOL_TABLE
Property identifier: symbol table.
VALIDATION
protected static final String VALIDATION
Feature identifier: validation.
XINCLUDE_ATTR_ACCEPT
public static final String XINCLUDE_ATTR_ACCEPT
XINCLUDE_ATTR_ACCEPT_LANGUAGE
public static final String XINCLUDE_ATTR_ACCEPT_LANGUAGE
XINCLUDE_ATTR_ENCODING
public static final String XINCLUDE_ATTR_ENCODING
XINCLUDE_ATTR_HREF
public static final String XINCLUDE_ATTR_HREF
XINCLUDE_ATTR_PARSE
public static final String XINCLUDE_ATTR_PARSE
XINCLUDE_DEFAULT_CONFIGURATION
public static final String XINCLUDE_DEFAULT_CONFIGURATION
XINCLUDE_FALLBACK
public static final String XINCLUDE_FALLBACK
XINCLUDE_FIXUP_BASE_URIS
protected static final String XINCLUDE_FIXUP_BASE_URIS
Feature identifier: fixup base URIs.
XINCLUDE_FIXUP_LANGUAGE
protected static final String XINCLUDE_FIXUP_LANGUAGE
Feature identifier: fixup language.
XINCLUDE_INCLUDE
public static final String XINCLUDE_INCLUDE
XINCLUDE_INCLUDED
public static final String XINCLUDE_INCLUDED
XINCLUDE_NS_URI
public static final String XINCLUDE_NS_URI
XINCLUDE_PARSE_TEXT
public static final String XINCLUDE_PARSE_TEXT
XINCLUDE_PARSE_XML
public static final String XINCLUDE_PARSE_XML
XPOINTER
public static final String XPOINTER
fBaseURI
protected Stack fBaseURI
fBaseURIScope
protected IntStack fBaseURIScope
fBufferSize
protected int fBufferSize
fChildConfig
protected org.apache.xerces.xni.parser.XMLParserConfiguration fChildConfig
fCurrentBaseURI
protected org.apache.xerces.xni.XMLResourceIdentifier fCurrentBaseURI
fCurrentLanguage
protected String fCurrentLanguage
fDTDHandler
protected org.apache.xerces.xni.XMLDTDHandler fDTDHandler
fDTDSource
protected org.apache.xerces.xni.parser.XMLDTDSource fDTDSource
fDocLocation
protected org.apache.xerces.xni.XMLLocator fDocLocation
fDocumentHandler
protected org.apache.xerces.xni.XMLDocumentHandler fDocumentHandler
fDocumentSource
protected org.apache.xerces.xni.parser.XMLDocumentSource fDocumentSource
fEntityResolver
protected org.apache.xerces.xni.parser.XMLEntityResolver fEntityResolver
fExpandedSystemID
protected Stack fExpandedSystemID
fHrefFromParent
protected String fHrefFromParent
fLanguageScope
protected IntStack fLanguageScope
fLanguageStack
protected Stack fLanguageStack
fLiteralSystemID
protected Stack fLiteralSystemID
fParentRelativeURI
protected String fParentRelativeURI
fXIncludeChildConfig
protected org.apache.xerces.xni.parser.XMLParserConfiguration fXIncludeChildConfig
fXPointerChildConfig
protected org.apache.xerces.xni.parser.XMLParserConfiguration fXPointerChildConfig
addNotation
protected void addNotation(String name,
org.apache.xerces.xni.XMLResourceIdentifier identifier,
org.apache.xerces.xni.Augmentations augmentations)
Caches a notation.
name
- the name of the notationidentifier
- the location of the notationaugmentations
- any Augmentations that were on the original notation declaration
addUnparsedEntity
protected void addUnparsedEntity(String name,
org.apache.xerces.xni.XMLResourceIdentifier identifier,
String notation,
org.apache.xerces.xni.Augmentations augmentations)
Caches an unparsed entity.
name
- the name of the unparsed entityidentifier
- the location of the unparsed entityaugmentations
- any Augmentations that were on the original unparsed entity declaration
attributeDecl
public void attributeDecl(String elementName,
String attributeName,
String type,
String[] enumeration,
String defaultType,
org.apache.xerces.xni.XMLString defaultValue,
org.apache.xerces.xni.XMLString nonNormalizedDefaultValue,
org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- attributeDecl in interface org.apache.xerces.xni.XMLDTDHandler
characters
public void characters(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
- characters in interface org.apache.xerces.xni.XMLDocumentHandler
checkAndSendNotation
protected void checkAndSendNotation(XIncludeHandler.Notation not)
The purpose of this method is to check if a Notation conflicts with a previously
declared notation in the current pipeline stack. If there is no conflict, the
Notation is sent by the root pipeline.
not
- the Notation to check for conflicts
checkAndSendUnparsedEntity
protected void checkAndSendUnparsedEntity(XIncludeHandler.UnparsedEntity ent)
The purpose of this method is to check if an UnparsedEntity conflicts with a previously
declared entity in the current pipeline stack. If there is no conflict, the
UnparsedEntity is sent by the root pipeline.
ent
- the UnparsedEntity to check for conflicts
checkNotation
protected void checkNotation(String notName)
Checks if a Notation with the given name was declared in the DTD of the document
for the current pipeline. If so, that Notation is passed to the root pipeline to
be checked for conflicts, and sent to the root DTDHandler
notName
- the name of the Notation to check
checkUnparsedEntity
protected void checkUnparsedEntity(String entName)
Checks if an UnparsedEntity with the given name was declared in the DTD of the document
for the current pipeline. If so, then the notation for the UnparsedEntity is checked.
If that turns out okay, then the UnparsedEntity is passed to the root pipeline to
be checked for conflicts, and sent to the root DTDHandler.
entName
- the name of the UnparsedEntity to check
comment
public void comment(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
- comment in interface org.apache.xerces.xni.XMLDocumentHandler
- comment in interface org.apache.xerces.xni.XMLDTDHandler
copyFeatures
protected void copyFeatures(org.apache.xerces.xni.parser.XMLComponentManager from,
org.apache.xerces.xni.parser.XMLParserConfiguration to)
doctypeDecl
public void doctypeDecl(String rootElement,
String publicId,
String systemId,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
- doctypeDecl in interface org.apache.xerces.xni.XMLDocumentHandler
elementDecl
public void elementDecl(String name,
String contentModel,
org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- elementDecl in interface org.apache.xerces.xni.XMLDTDHandler
emptyElement
public void emptyElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attributes,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
- emptyElement in interface org.apache.xerces.xni.XMLDocumentHandler
endAttlist
public void endAttlist(org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- endAttlist in interface org.apache.xerces.xni.XMLDTDHandler
endCDATA
public void endCDATA(org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
- endCDATA in interface org.apache.xerces.xni.XMLDocumentHandler
endConditional
public void endConditional(org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- endConditional in interface org.apache.xerces.xni.XMLDTDHandler
endDTD
public void endDTD(org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- endDTD in interface org.apache.xerces.xni.XMLDTDHandler
endDocument
public void endDocument(org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
- endDocument in interface org.apache.xerces.xni.XMLDocumentHandler
endElement
public void endElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
- endElement in interface org.apache.xerces.xni.XMLDocumentHandler
endExternalSubset
public void endExternalSubset(org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- endExternalSubset in interface org.apache.xerces.xni.XMLDTDHandler
endGeneralEntity
public void endGeneralEntity(String name,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
- endGeneralEntity in interface org.apache.xerces.xni.XMLDocumentHandler
endParameterEntity
public void endParameterEntity(String name,
org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- endParameterEntity in interface org.apache.xerces.xni.XMLDTDHandler
externalEntityDecl
public void externalEntityDecl(String name,
org.apache.xerces.xni.XMLResourceIdentifier identifier,
org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- externalEntityDecl in interface org.apache.xerces.xni.XMLDTDHandler
getBaseURI
public String getBaseURI(int depth)
Gets the base URI that was in use at that depth
getDTDHandler
public org.apache.xerces.xni.XMLDTDHandler getDTDHandler()
- getDTDHandler in interface org.apache.xerces.xni.parser.XMLDTDSource
getDTDSource
public org.apache.xerces.xni.parser.XMLDTDSource getDTDSource()
- getDTDSource in interface org.apache.xerces.xni.XMLDTDHandler
getDocumentHandler
public org.apache.xerces.xni.XMLDocumentHandler getDocumentHandler()
- getDocumentHandler in interface org.apache.xerces.xni.parser.XMLDocumentSource
getDocumentSource
public org.apache.xerces.xni.parser.XMLDocumentSource getDocumentSource()
- getDocumentSource in interface org.apache.xerces.xni.XMLDocumentHandler
getFeatureDefault
public Boolean getFeatureDefault(String featureId)
Returns the default state for a feature, or null if this
component does not want to report a default value for this
feature.
- getFeatureDefault in interface org.apache.xerces.xni.parser.XMLComponent
featureId
- The feature identifier.
getLanguage
public String getLanguage(int depth)
Gets the language that was in use at that depth.
getPropertyDefault
public Object getPropertyDefault(String propertyId)
Returns the default state for a property, or null if this
component does not want to report a default value for this
property.
- getPropertyDefault in interface org.apache.xerces.xni.parser.XMLComponent
propertyId
- The property identifier.
getRecognizedFeatures
public String[] getRecognizedFeatures()
Returns a list of feature identifiers that are recognized by
this component. This method may return null if no features
are recognized by this component.
- getRecognizedFeatures in interface org.apache.xerces.xni.parser.XMLComponent
getRecognizedProperties
public String[] getRecognizedProperties()
Returns a list of property identifiers that are recognized by
this component. This method may return null if no properties
are recognized by this component.
- getRecognizedProperties in interface org.apache.xerces.xni.parser.XMLComponent
getRelativeBaseURI
protected String getRelativeBaseURI()
throws URI.MalformedURIException
Returns a URI, relative to the include parent's base URI, of the current
[base URI]. For instance, if the current [base URI] was "dir1/dir2/file.xml"
and the include parent's [base URI] was "dir/", this would return "dir2/file.xml".
getRelativeURI
public String getRelativeURI(int depth)
throws URI.MalformedURIException
Returns a relative URI, which when resolved against the base URI at the
specified depth, will create the current base URI.
This is accomplished by merged the literal system IDs.
depth
- the depth at which to start creating the relative URI
- a relative URI to convert the base URI at the given depth to the current
base URI
getSawFallback
protected boolean getSawFallback(int depth)
Returns whether an <fallback> was encountered at the specified depth,
as an ancestor of the current element, or as a sibling of an ancestor of the
current element.
getSawInclude
protected boolean getSawInclude(int depth)
Return whether an <include> was encountered at the specified depth,
as an ancestor of the current item.
getState
protected int getState()
getState
protected int getState(int depth)
handleFallbackElement
protected void handleFallbackElement()
handleIncludeElement
protected boolean handleIncludeElement(org.apache.xerces.xni.XMLAttributes attributes)
throws org.apache.xerces.xni.XNIException
hasXIncludeNamespace
protected boolean hasXIncludeNamespace(org.apache.xerces.xni.QName element)
Returns true if the element has the namespace "http://www.w3.org/2001/XInclude"
element
- the element to check
- true if the element has the namespace "http://www.w3.org/2001/XInclude"
ignorableWhitespace
public void ignorableWhitespace(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
- ignorableWhitespace in interface org.apache.xerces.xni.XMLDocumentHandler
ignoredCharacters
public void ignoredCharacters(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- ignoredCharacters in interface org.apache.xerces.xni.XMLDTDHandler
internalEntityDecl
public void internalEntityDecl(String name,
org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.XMLString nonNormalizedText,
org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- internalEntityDecl in interface org.apache.xerces.xni.XMLDTDHandler
isFallbackElement
protected boolean isFallbackElement(org.apache.xerces.xni.QName element)
Checks if the element is an <fallback> element. The element must have
the XInclude namespace, and a local name of "fallback".
element
- the element to check
- true if the element is an <fallback; element
isIncludeElement
protected boolean isIncludeElement(org.apache.xerces.xni.QName element)
Checks if the element is an <include> element. The element must have
the XInclude namespace, and a local name of "include".
element
- the element to check
- true if the element is an <include> element
isRootDocument
protected boolean isRootDocument()
isTopLevelIncludedItem
protected boolean isTopLevelIncludedItem()
Returns true if the current element is a top level included item. This means
it's either the child of a fallback element, or the top level item in an
included document
- true if the current element is a top level included item
isTopLevelIncludedItemViaFallback
protected boolean isTopLevelIncludedItemViaFallback()
isTopLevelIncludedItemViaInclude
protected boolean isTopLevelIncludedItemViaInclude()
modifyAugmentations
protected org.apache.xerces.xni.Augmentations modifyAugmentations(org.apache.xerces.xni.Augmentations augs)
Modify the augmentations. Add an [included] infoset item, if the current
element is a top level included item.
augs
- the Augmentations to modify.
- the modified Augmentations
modifyAugmentations
protected org.apache.xerces.xni.Augmentations modifyAugmentations(org.apache.xerces.xni.Augmentations augs,
boolean force)
Modify the augmentations. Add an [included] infoset item, if force
is true, or if the current element is a top level included item.
augs
- the Augmentations to modify.force
- whether to force modification
- the modified Augmentations
notationDecl
public void notationDecl(String name,
org.apache.xerces.xni.XMLResourceIdentifier identifier,
org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- notationDecl in interface org.apache.xerces.xni.XMLDTDHandler
processAttributes
protected org.apache.xerces.xni.XMLAttributes processAttributes(org.apache.xerces.xni.XMLAttributes attributes)
Processes the XMLAttributes object of startElement() calls. Performs the following tasks:
- If the element is a top level included item whose [base URI] is different from the
[base URI] of the include parent, then an xml:base attribute is added to specify the
true [base URI]
- For all namespace prefixes which are in-scope in an included item, but not in scope
in the include parent, a xmlns:prefix attribute is added
- For all attributes with a type of ENTITY, ENTITIES or NOTATIONS, the notations and
unparsed entities are processed as described in the spec, sections 4.5.1 and 4.5.2
processXMLBaseAttributes
protected void processXMLBaseAttributes(org.apache.xerces.xni.XMLAttributes attributes)
Search for a xml:base attribute, and if one is found, put the new base URI into
effect.
processXMLLangAttributes
protected void processXMLLangAttributes(org.apache.xerces.xni.XMLAttributes attributes)
Search for a xml:lang attribute, and if one is found, put the new
[language] into effect.
processingInstruction
public void processingInstruction(String target,
org.apache.xerces.xni.XMLString data,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
- processingInstruction in interface org.apache.xerces.xni.XMLDocumentHandler
- processingInstruction in interface org.apache.xerces.xni.XMLDTDHandler
reportFatalError
protected void reportFatalError(String key)
reportFatalError
protected void reportFatalError(String key,
Object[] args)
reportResourceError
protected void reportResourceError(String key)
reportResourceError
protected void reportResourceError(String key,
Object[] args)
reset
public void reset(org.apache.xerces.xni.parser.XMLComponentManager componentManager)
throws org.apache.xerces.xni.XNIException
- reset in interface org.apache.xerces.xni.parser.XMLComponent
restoreBaseURI
protected void restoreBaseURI()
Discards the URIs at the top of the stack, and restores the ones beneath it.
restoreLanguage
public String restoreLanguage()
Discards the language at the top of the stack, and returns the one beneath it.
sameBaseURIAsIncludeParent
protected boolean sameBaseURIAsIncludeParent()
Returns true if the current [base URI] is the same as the [base URI] that
was in effect on the include parent. This method should only be called
when the current element is a top level included element, i.e. the direct child
of a fallback element, or the root elements in an included document.
The "include parent" is the element which, in the result infoset, will be the
direct parent of the current element.
- true if the [base URIs] are the same string
sameLanguageAsIncludeParent
protected boolean sameLanguageAsIncludeParent()
Returns true if the current [language] is equivalent to the [language] that
was in effect on the include parent, taking case-insensitivity into account
as per [RFC 3066]. This method should only be called when the
current element is a top level included element, i.e. the direct child
of a fallback element, or the root elements in an included document.
The "include parent" is the element which, in the result infoset, will be the
direct parent of the current element.
- true if the [language] properties have the same value
taking case-insensitivity into account as per [RFC 3066].
saveBaseURI
protected void saveBaseURI()
Saves the current base URI to the top of the stack.
saveLanguage
protected void saveLanguage(String language)
Saves the given language on the top of the stack.
searchForRecursiveIncludes
protected boolean searchForRecursiveIncludes(String includedSysId)
Checks if the file indicated by the given system id has already been
included in the current stack.
includedSysId
- the system id to check for inclusion
- true if the source has already been included
setDTDHandler
public void setDTDHandler(org.apache.xerces.xni.XMLDTDHandler handler)
- setDTDHandler in interface org.apache.xerces.xni.parser.XMLDTDSource
setDTDSource
public void setDTDSource(org.apache.xerces.xni.parser.XMLDTDSource source)
- setDTDSource in interface org.apache.xerces.xni.XMLDTDHandler
setDocumentHandler
public void setDocumentHandler(org.apache.xerces.xni.XMLDocumentHandler handler)
- setDocumentHandler in interface org.apache.xerces.xni.parser.XMLDocumentSource
setDocumentSource
public void setDocumentSource(org.apache.xerces.xni.parser.XMLDocumentSource source)
- setDocumentSource in interface org.apache.xerces.xni.XMLDocumentHandler
setFeature
public void setFeature(String featureId,
boolean state)
throws org.apache.xerces.xni.parser.XMLConfigurationException
Sets the state of a feature. This method is called by the component
manager any time after reset when a feature changes state.
Note: Components should silently ignore features
that do not affect the operation of the component.
- setFeature in interface org.apache.xerces.xni.parser.XMLComponent
featureId
- The feature identifier.state
- The state of the feature.
setHref
protected void setHref(String href)
setParent
protected void setParent(XIncludeHandler parent)
Set the parent of this XIncludeHandler in the tree
setProperty
public void setProperty(String propertyId,
Object value)
throws org.apache.xerces.xni.parser.XMLConfigurationException
Sets the value of a property. This method is called by the component
manager any time after reset when a property changes value.
Note: Components should silently ignore properties
that do not affect the operation of the component.
- setProperty in interface org.apache.xerces.xni.parser.XMLComponent
propertyId
- The property identifier.value
- The value of the property.
setSawFallback
protected void setSawFallback(int depth,
boolean val)
Records that an <fallback> was encountered at the specified depth,
as an ancestor of the current element, or as a sibling of an ancestor of the
current element.
setSawInclude
protected void setSawInclude(int depth,
boolean val)
Records that an <include> was encountered at the specified depth,
as an ancestor of the current item.
setState
protected void setState(int state)
setupCurrentBaseURI
protected void setupCurrentBaseURI(org.apache.xerces.xni.XMLLocator locator)
startAttlist
public void startAttlist(String elementName,
org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- startAttlist in interface org.apache.xerces.xni.XMLDTDHandler
startCDATA
public void startCDATA(org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
- startCDATA in interface org.apache.xerces.xni.XMLDocumentHandler
startConditional
public void startConditional(short type,
org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- startConditional in interface org.apache.xerces.xni.XMLDTDHandler
startDTD
public void startDTD(org.apache.xerces.xni.XMLLocator locator,
org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- startDTD in interface org.apache.xerces.xni.XMLDTDHandler
startDocument
public void startDocument(org.apache.xerces.xni.XMLLocator locator,
String encoding,
org.apache.xerces.xni.NamespaceContext namespaceContext,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
Event sent at the start of the document.
A fatal error will occur here, if it is detected that this document has been processed
before.
This event is only passed on to the document handler if this is the root document.
- startDocument in interface org.apache.xerces.xni.XMLDocumentHandler
startElement
public void startElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attributes,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
- startElement in interface org.apache.xerces.xni.XMLDocumentHandler
startExternalSubset
public void startExternalSubset(org.apache.xerces.xni.XMLResourceIdentifier identifier,
org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- startExternalSubset in interface org.apache.xerces.xni.XMLDTDHandler
startGeneralEntity
public void startGeneralEntity(String name,
org.apache.xerces.xni.XMLResourceIdentifier resId,
String encoding,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
- startGeneralEntity in interface org.apache.xerces.xni.XMLDocumentHandler
startParameterEntity
public void startParameterEntity(String name,
org.apache.xerces.xni.XMLResourceIdentifier identifier,
String encoding,
org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- startParameterEntity in interface org.apache.xerces.xni.XMLDTDHandler
textDecl
public void textDecl(String version,
String encoding,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
- textDecl in interface org.apache.xerces.xni.XMLDocumentHandler
- textDecl in interface org.apache.xerces.xni.XMLDTDHandler
unparsedEntityDecl
public void unparsedEntityDecl(String name,
org.apache.xerces.xni.XMLResourceIdentifier identifier,
String notation,
org.apache.xerces.xni.Augmentations augmentations)
throws org.apache.xerces.xni.XNIException
- unparsedEntityDecl in interface org.apache.xerces.xni.XMLDTDHandler
xmlDecl
public void xmlDecl(String version,
String encoding,
String standalone,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
- xmlDecl in interface org.apache.xerces.xni.XMLDocumentHandler