This component requires the following features and properties from the component manager that uses it:
| Modifier and Type | Class and Description |
|---|---|
| protected static interface | XMLDocumentFragmentScannerImpl.Dispatcher
This interface defines an XML "event" dispatching model. |
| protected static class | XMLDocumentFragmentScannerImpl.ElementStack
Element stack. |
| protected class | XMLDocumentFragmentScannerImpl.FragmentContentDispatcher
Dispatcher to handle content scanning. |
| Modifier and Type | Field and Description |
|---|---|
| protected static final boolean | DEBUG_CONTENT_SCANNING
Debug content dispatcher scanning. |
| private static final boolean | DEBUG_DISPATCHER
Debug dispatcher. |
| private static final boolean | DEBUG_SCANNER_STATE
Debug scanner state. |
| protected static final String | ENTITY_RESOLVER
Property identifier: entity resolver. |
| protected final QName | fAttributeQName
Attribute QName. |
| protected final XMLAttributesImpl | fAttributes
Element attributes. |
| protected final XMLDocumentFragmentScannerImpl. | fContentDispatcher
Content dispatcher. |
| protected QName | fCurrentElement
Current element. |
| protected XMLDocumentFragmentScannerImpl. | fDispatcher
Active dispatcher. |
| protected XMLDocumentHandler | fDocumentHandler
Document handler. |
| private static final Boolean[] | FEATURE_DEFAULTS
Feature defaults. |
| protected final QName | fElementQName
Element QName. |
| protected final XMLDocumentFragmentScannerImpl. | fElementStack
Element stack. |
| protected int[] | fEntityStack
Entity stack. |
| protected ExternalSubsetResolver | fExternalSubsetResolver
External subset resolver. |
| protected boolean | fHasExternalDTD
has external dtd |
| protected boolean | fInScanContent
SubScanner state: inside scanContent method. |
| protected boolean | fIsEntityDeclaredVC
True if [Entity Declared] is a VC; false if it is a WFC. |
| protected int | fMarkupDepth
Markup depth. |
| protected boolean | fNotifyBuiltInRefs
Notify built-in references. |
| private final QName | fQName
Another QName. |
| private boolean | fSawSpace
Saw spaces after element name or between attributes. |
| protected int | fScannerState
Scanner state. |
| private final char[] | fSingleChar
Single character array. |
| protected boolean | fStandalone
Standalone. |
| private final XMLStringBuffer | fStringBuffer
String buffer.
|
| private final XMLStringBuffer | fStringBuffer2
String buffer.
|
| private final String[] | fStrings
Array of 3 strings. |
| private Augmentations | fTempAugmentations
Reusable Augmentations. |
| protected final XMLString | fTempString
String. |
| protected final XMLString | fTempString2
String. |
| protected static final String | NAMESPACES
Feature identifier: namespaces.
|
| protected static final String | NOTIFY_BUILTIN_REFS
Feature identifier: notify built-in refereces. |
| private static final Object[] | PROPERTY_DEFAULTS
Property defaults. |
| private static final String[] | RECOGNIZED_FEATURES
Recognized features. |
| private static final String[] | RECOGNIZED_PROPERTIES
Recognized properties. |
| protected static final int | SCANNER_STATE_CDATA
Scanner state: CDATA section. |
| protected static final int | SCANNER_STATE_COMMENT
Scanner state: comment. |
| protected static final int | SCANNER_STATE_CONTENT
Scanner state: content. |
| protected static final int | SCANNER_STATE_DOCTYPE
Scanner state: DOCTYPE. |
| protected static final int | SCANNER_STATE_END_OF_INPUT
Scanner state: end of input. |
| protected static final int | SCANNER_STATE_PI
Scanner state: processing instruction. |
| protected static final int | SCANNER_STATE_REFERENCE
Scanner state: reference. |
| protected static final int | SCANNER_STATE_ROOT_ELEMENT
Scanner state: root element. |
| protected static final int | SCANNER_STATE_START_OF_MARKUP
Scanner state: start of markup. |
| protected static final int | SCANNER_STATE_TERMINATED
Scanner state: terminated. |
| protected static final int | SCANNER_STATE_TEXT_DECL
Scanner state: Text declaration. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected XMLDocumentFragmentScannerImpl. | |
| public void | endEntity(String
The name of the entity. name, Augmentations Additional information that may include infoset augmentations augs)Overrides org. Implements org. |
| public String | |
| public XMLDocumentHandler | getDocumentHandler()
Implements org. |
| public Boolean | getFeatureDefault(String
The feature identifier. featureId)Implements org. |
| public Object | getPropertyDefault(String
The property identifier. propertyId)Implements org. |
| public String[] | getRecognizedFeatures()
Implements org. |
| public String[] | getRecognizedProperties()
Implements org. |
| protected String | |
| private void | handleCharacter(char c, String
built-in name entity)Calls document handler with a single character resulting from built-in entity resolution. |
| protected int | Returns: The element depth.The element. element, boolean isEmpty)Handles the end element. |
| public void | reset(XMLComponentManager
The component manager. componentManager)Overrides org. Implements org. |
| protected void | scanAttribute(XMLAttributes
The attributes list for the scanned attribute. attributes)Scans an attribute. |
| protected boolean | Returns: True if CDATA is completely scanned.True if the CDATA section is to be scanned
completely. complete)Scans a CDATA section. |
| protected void | |
| protected void | |
| protected int | |
| public boolean | Returns: True if there is more to scan, false otherwise.True if the scanner should scan the document
completely, pushing all events to the registered
document handler. A value of false indicates that
that the scanner should only scan the next portion
of the document and return. A scanner instance is
permitted to completely scan a document if it does
not support this "pull" scanning model. complete)Implements org. |
| protected int | |
| protected void | |
| protected void | scanPIData(String
The PI target target, XMLString The string to fill in with the data data)Overrides org. |
| protected boolean | Returns: True if element is empty. (i.e. It matches production [44].Scans a start element. |
| protected boolean | Returns: True if element is empty.Scans the remainder of a start or empty tag after the element name. |
| protected void | |
| protected void | scanXMLDeclOrTextDecl(boolean
True if a text declaration is to
be scanned instead of an XML
declaration. scanningTextDecl)Scans an XML or text declaration. |
| protected final void | setDispatcher(XMLDocumentFragmentScannerImpl.
The new dispatcher. dispatcherSets the dispatcher. |
| public void | setDocumentHandler(XMLDocumentHandler documentHandler)
Implements org. |
| public void | setFeature(String
The feature identifier. featureId, boolean The state of the feature. state)Overrides org. Implements org. |
| public void | setInputSource(XMLInputSource
The input source. inputSource)Implements org. |
| public void | setProperty(String
The property identifier. propertyId, Object The value of the property. value)Overrides org. Implements org. |
| protected final void | |
| public void | startEntity(String
The name of the entity. name, XMLResourceIdentifier The resource identifier. identifier, String 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). encoding, Augmentations Additional information that may include infoset augmentations augs)Overrides org. Implements org. |
| DEBUG_CONTENT_SCANNING | back to summary |
|---|---|
| protected static final boolean DEBUG_CONTENT_SCANNING Debug content dispatcher scanning. | |
| DEBUG_DISPATCHER | back to summary |
|---|---|
| private static final boolean DEBUG_DISPATCHER Debug dispatcher. | |
| DEBUG_SCANNER_STATE | back to summary |
|---|---|
| private static final boolean DEBUG_SCANNER_STATE Debug scanner state. | |
| ENTITY_RESOLVER | back to summary |
|---|---|
| protected static final String ENTITY_RESOLVER Property identifier: entity resolver. | |
| fAttributeQName | back to summary |
|---|---|
| protected final QName fAttributeQName Attribute QName. | |
| fAttributes | back to summary |
|---|---|
| protected final XMLAttributesImpl fAttributes Element attributes. | |
| fContentDispatcher | back to summary |
|---|---|
| protected final XMLDocumentFragmentScannerImpl. Content dispatcher. | |
| fCurrentElement | back to summary |
|---|---|
| protected QName fCurrentElement Current element. | |
| fDispatcher | back to summary |
|---|---|
| protected XMLDocumentFragmentScannerImpl. Active dispatcher. | |
| fDocumentHandler | back to summary |
|---|---|
| protected XMLDocumentHandler fDocumentHandler Document handler. | |
| FEATURE_DEFAULTS | back to summary |
|---|---|
| private static final Boolean[] FEATURE_DEFAULTS Feature defaults. | |
| fElementQName | back to summary |
|---|---|
| protected final QName fElementQName Element QName. | |
| fElementStack | back to summary |
|---|---|
| protected final XMLDocumentFragmentScannerImpl. Element stack. | |
| fEntityStack | back to summary |
|---|---|
| protected int[] fEntityStack Entity stack. | |
| fExternalSubsetResolver | back to summary |
|---|---|
| protected ExternalSubsetResolver fExternalSubsetResolver External subset resolver. | |
| fHasExternalDTD | back to summary |
|---|---|
| protected boolean fHasExternalDTD has external dtd | |
| fInScanContent | back to summary |
|---|---|
| protected boolean fInScanContent SubScanner state: inside scanContent method. | |
| fIsEntityDeclaredVC | back to summary |
|---|---|
| protected boolean fIsEntityDeclaredVC True if [Entity Declared] is a VC; false if it is a WFC. | |
| fMarkupDepth | back to summary |
|---|---|
| protected int fMarkupDepth Markup depth. | |
| fNotifyBuiltInRefs | back to summary |
|---|---|
| protected boolean fNotifyBuiltInRefs Notify built-in references. | |
| fQName | back to summary |
|---|---|
| private final QName fQName Another QName. | |
| fSawSpace | back to summary |
|---|---|
| private boolean fSawSpace Saw spaces after element name or between attributes. This is reserved for the case where scanning of a start element spans several methods, as is the case when scanning the start of a root element where a DTD external subset may be read after scanning the element name. | |
| fScannerState | back to summary |
|---|---|
| protected int fScannerState Scanner state. | |
| fSingleChar | back to summary |
|---|---|
| private final char[] fSingleChar Single character array. | |
| fStandalone | back to summary |
|---|---|
| protected boolean fStandalone Standalone. | |
| fStringBuffer | back to summary |
|---|---|
| private final XMLStringBuffer fStringBuffer Hides org. String buffer. | |
| fStringBuffer2 | back to summary |
|---|---|
| private final XMLStringBuffer fStringBuffer2 Hides org. String buffer. | |
| fStrings | back to summary |
|---|---|
| private final String[] fStrings Array of 3 strings. | |
| fTempAugmentations | back to summary |
|---|---|
| private Augmentations fTempAugmentations Reusable Augmentations. | |
| fTempString | back to summary |
|---|---|
| protected final XMLString fTempString String. | |
| fTempString2 | back to summary |
|---|---|
| protected final XMLString fTempString2 String. | |
| NAMESPACES | back to summary |
|---|---|
| protected static final String NAMESPACES Hides org. Feature identifier: namespaces. | |
| NOTIFY_BUILTIN_REFS | back to summary |
|---|---|
| protected static final String NOTIFY_BUILTIN_REFS Feature identifier: notify built-in refereces. | |
| PROPERTY_DEFAULTS | back to summary |
|---|---|
| private static final Object[] PROPERTY_DEFAULTS Property defaults. | |
| RECOGNIZED_FEATURES | back to summary |
|---|---|
| private static final String[] RECOGNIZED_FEATURES Recognized features. | |
| RECOGNIZED_PROPERTIES | back to summary |
|---|---|
| private static final String[] RECOGNIZED_PROPERTIES Recognized properties. | |
| SCANNER_STATE_CDATA | back to summary |
|---|---|
| protected static final int SCANNER_STATE_CDATA Scanner state: CDATA section. | |
| SCANNER_STATE_COMMENT | back to summary |
|---|---|
| protected static final int SCANNER_STATE_COMMENT Scanner state: comment. | |
| SCANNER_STATE_CONTENT | back to summary |
|---|---|
| protected static final int SCANNER_STATE_CONTENT Scanner state: content. | |
| SCANNER_STATE_DOCTYPE | back to summary |
|---|---|
| protected static final int SCANNER_STATE_DOCTYPE Scanner state: DOCTYPE. | |
| SCANNER_STATE_END_OF_INPUT | back to summary |
|---|---|
| protected static final int SCANNER_STATE_END_OF_INPUT Scanner state: end of input. | |
| SCANNER_STATE_PI | back to summary |
|---|---|
| protected static final int SCANNER_STATE_PI Scanner state: processing instruction. | |
| SCANNER_STATE_REFERENCE | back to summary |
|---|---|
| protected static final int SCANNER_STATE_REFERENCE Scanner state: reference. | |
| SCANNER_STATE_ROOT_ELEMENT | back to summary |
|---|---|
| protected static final int SCANNER_STATE_ROOT_ELEMENT Scanner state: root element. | |
| SCANNER_STATE_START_OF_MARKUP | back to summary |
|---|---|
| protected static final int SCANNER_STATE_START_OF_MARKUP Scanner state: start of markup. | |
| SCANNER_STATE_TERMINATED | back to summary |
|---|---|
| protected static final int SCANNER_STATE_TERMINATED Scanner state: terminated. | |
| SCANNER_STATE_TEXT_DECL | back to summary |
|---|---|
| protected static final int SCANNER_STATE_TEXT_DECL Scanner state: Text declaration. | |
| XMLDocumentFragmentScannerImpl | back to summary |
|---|---|
| public XMLDocumentFragmentScannerImpl() Default constructor. | |
| createContentDispatcher | back to summary |
|---|---|
| protected XMLDocumentFragmentScannerImpl. Creates a content dispatcher. | |
| endEntity | back to summary |
|---|---|
| public void endEntity(String name, Augmentations augs) throws XNIException Overrides org. Implements org. This method notifies the end of an entity. The DTD has the pseudo-name of "[dtd]" parameter entity names start with '%'; and general entities are just specified by their name.
| |
| getDispatcherName | back to summary |
|---|---|
| public String getDispatcherName(XMLDocumentFragmentScannerImpl. Returns the dispatcher name. | |
| getDocumentHandler | back to summary |
|---|---|
| public XMLDocumentHandler getDocumentHandler() Implements org. Returns the document handler | |
| getFeatureDefault | back to summary |
|---|---|
| public Boolean getFeatureDefault(String featureId) Implements org. Returns the default state for a feature, or null if this component does not want to report a default value for this feature.
| |
| getPropertyDefault | back to summary |
|---|---|
| public Object getPropertyDefault(String propertyId) Implements org. Returns the default state for a property, or null if this component does not want to report a default value for this property.
| |
| getRecognizedFeatures | back to summary |
|---|---|
| public String[] getRecognizedFeatures() Implements org. 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. | |
| getRecognizedProperties | back to summary |
|---|---|
| public String[] getRecognizedProperties() Implements org. 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. | |
| getScannerStateName | back to summary |
|---|---|
| protected String getScannerStateName(int state) Returns the scanner state name. | |
| handleCharacter | back to summary |
|---|---|
| private void handleCharacter(char c, String entity) throws XNIException Calls document handler with a single character resulting from built-in entity resolution.
| |
| handleEndElement | back to summary |
|---|---|
| protected int handleEndElement(QName element, boolean isEmpty) throws XNIException Handles the end element. This method will make sure that the end element name matches the current element and notify the handler about the end of the element and the end of any relevent prefix mappings. Note This method uses the fQName variable. The contents of this variable will be destroyed.
| |
| reset | back to summary |
|---|---|
| public void reset(XMLComponentManager componentManager) throws XMLConfigurationException Overrides org. Implements org. Resets the component. The component can query the component manager about any features and properties that affect the operation of the component.
| |
| scanAttribute | back to summary |
|---|---|
| protected void scanAttribute(XMLAttributes attributes) throws IOException, XNIException Scans an attribute.
[41] Attribute ::= Name Eq AttValue Note This method assumes that the next character on the stream is the first character of the attribute name. Note This method uses the fAttributeQName and fQName variables. The contents of these variables will be destroyed.
| |
| scanCDATASection | back to summary |
|---|---|
| protected boolean scanCDATASection(boolean complete) throws IOException, XNIException Scans a CDATA section. Note This method uses the fTempString and fStringBuffer variables.
| |
| scanCharReference | back to summary |
|---|---|
| protected void scanCharReference() throws IOException, XNIException Scans a character reference.
[66] CharRef ::= '' [0-9]+ ';' | '' [0-9a-fA-F]+ ';' | |
| scanComment | back to summary |
|---|---|
| protected void scanComment() throws IOException, XNIException Scans a comment.
[15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'
Note Called after scanning past '<!--' | |
| scanContent | back to summary |
|---|---|
| protected int scanContent() throws IOException, XNIException Scans element content.
| |
| scanDocument | back to summary |
|---|---|
| public boolean scanDocument(boolean complete) throws IOException, XNIException Implements org. Scans a document.
| |
| scanEndElement | back to summary |
|---|---|
| protected int scanEndElement() throws IOException, XNIException Scans an end element.
[42] ETag ::= '</' Name S? '>' Note This method uses the fElementQName variable. The contents of this variable will be destroyed. The caller should copy the needed information out of this variable before calling this method.
| |
| scanEntityReference | back to summary |
|---|---|
| protected void scanEntityReference() throws IOException, XNIException Scans an entity reference.
| |
| scanPIData | back to summary |
|---|---|
| protected void scanPIData(String target, XMLString data) throws IOException, XNIException Overrides org. Scans a processing data. This is needed to handle the situation where a document starts with a processing instruction whose target name starts with "xml". (e.g. xmlfoo) | |
| scanStartElement | back to summary |
|---|---|
| protected boolean scanStartElement() throws IOException, XNIException Scans a start element. This method will handle the binding of namespace information and notifying the handler of the start of the element.
[44] EmptyElemTag ::= '<' Name (S Attribute)* S? '/>' [40] STag ::= '<' Name (S Attribute)* S? '>' Note This method assumes that the leading '<' character has been consumed. Note This method uses the fElementQName and fAttributes variables. The contents of these variables will be destroyed. The caller should copy important information out of these variables before calling this method.
| |
| scanStartElementAfterName | back to summary |
|---|---|
| protected boolean scanStartElementAfterName() throws IOException, XNIException Scans the remainder of a start or empty tag after the element name.
| |
| scanStartElementName | back to summary |
|---|---|
| protected void scanStartElementName() throws IOException, XNIException Scans the name of an element in a start or empty tag.
| |
| scanXMLDeclOrTextDecl | back to summary |
|---|---|
| protected void scanXMLDeclOrTextDecl(boolean scanningTextDecl) throws IOException, XNIException Scans an XML or text declaration.
[23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'
[24] VersionInfo ::= S 'version' Eq (' VersionNum ' | " VersionNum ")
[80] EncodingDecl ::= S 'encoding' Eq ('"' EncName '"' | "'" EncName "'" )
[81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*
[32] SDDecl ::= S 'standalone' Eq (("'" ('yes' | 'no') "'")
| ('"' ('yes' | 'no') '"'))
[77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>'
| |
| setDispatcher | back to summary |
|---|---|
| protected final void setDispatcher(XMLDocumentFragmentScannerImpl. Sets the dispatcher.
| |
| setDocumentHandler | back to summary |
|---|---|
| public void setDocumentHandler(XMLDocumentHandler documentHandler) Implements org. setDocumentHandler | |
| setFeature | back to summary |
|---|---|
| public void setFeature(String featureId, boolean state) throws XMLConfigurationException Overrides org. Implements org. 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.
| |
| setInputSource | back to summary |
|---|---|
| public void setInputSource(XMLInputSource inputSource) throws IOException Implements org. Sets the input source.
| |
| setProperty | back to summary |
|---|---|
| public void setProperty(String propertyId, Object value) throws XMLConfigurationException Overrides org. Implements org. 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.
| |
| setScannerState | back to summary |
|---|---|
| protected final void setScannerState(int state) Sets the scanner state.
| |
| startEntity | back to summary |
|---|---|
| public void startEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException Overrides org. Implements org. This method notifies of the start of an entity. The DTD has the pseudo-name of "[dtd]" parameter entity names start with '%'; and general entities are just specified by their name.
| |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if there is more to dispatch either from this or a another dispatcher.True if this dispatcher is intended to scan
and dispatch as much as possible. complete)Dispatch an XML "event". |
| dispatch | back to summary |
|---|---|
| public boolean dispatch(boolean complete) throws IOException, XNIException Dispatch an XML "event".
| |
| Modifier and Type | Field and Description |
|---|---|
| protected QName[] | fElements
The stack data. |
| protected int | fSize
The size of the stack. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | popElement(QName element)
Pops an element off of the stack by setting the values of the specified QName. |
| public QName | Returns: Returns the actual QName object that stores theThe element to push onto the stack. element)Pushes an element on the stack. |
| fElements | back to summary |
|---|---|
| protected QName[] fElements The stack data. | |
| fSize | back to summary |
|---|---|
| protected int fSize The size of the stack. | |
| ElementStack | back to summary |
|---|---|
| public ElementStack() Default constructor. | |
| clear | back to summary |
|---|---|
| public void clear() Clears the stack without throwing away existing QName objects. | |
| popElement | back to summary |
|---|---|
| public void popElement(QName element) Pops an element off of the stack by setting the values of the specified QName. Note The object returned is not orphaned to the caller. Therefore, the caller should consider the object to be read-only. | |
| pushElement | back to summary |
|---|---|
| public QName pushElement(QName element) Pushes an element on the stack. Note The QName values are copied into the stack. In other words, the caller does not orphan the element to the stack. Also, the QName object returned is not orphaned to the caller. It should be considered read-only. | |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if there is more to dispatch either from this or a another dispatcher.True if this dispatcher is intended to scan
and dispatch as much as possible. complete)Implements org. |
| protected boolean | Returns: True if the caller should stop and return true which allows the scanner to switch to a new scanning dispatcher. A return value of false indicates that the content dispatcher should continue as normal.Element depth iz zero. |
| protected void | |
| protected boolean | Returns: True if the "DOCTYPE" was scanned; false if "DOCTYPE" was not scanned.Scan for DOCTYPE hook. |
| protected boolean | Returns: True if the caller should stop and return true which allows the scanner to switch to a new scanning dispatcher. A return value of false indicates that the content dispatcher should continue as normal.Scan for root element hook. |
| FragmentContentDispatcher | back to summary |
|---|---|
| protected FragmentContentDispatcher() | |
| dispatch | back to summary |
|---|---|
| public boolean dispatch(boolean complete) throws IOException, XNIException Implements org. Dispatch an XML "event".
| |
| elementDepthIsZeroHook | back to summary |
|---|---|
| protected boolean elementDepthIsZeroHook() throws IOException, XNIException Element depth iz zero. This methos is a hook for subclasses to add code to handle when the element depth hits zero. When scanning a document fragment, an element depth of zero is normal. However, when scanning a full XML document, the scanner must handle the trailing miscellanous section of the document after the end of the document's root element.
| |
| endOfFileHook | back to summary |
|---|---|
| protected void endOfFileHook(EOFException e) throws IOException, XNIException End of file hook. This method is a hook for subclasses to add code that handles the end of file. The end of file in a document fragment is OK if the markup depth is zero. However, when scanning a full XML document, an end of file is always premature. | |
| scanForDoctypeHook | back to summary |
|---|---|
| protected boolean scanForDoctypeHook() throws IOException, XNIException Scan for DOCTYPE hook. This method is a hook for subclasses to add code to handle scanning for a the "DOCTYPE" string after the string " True if the "DOCTYPE" was scanned; false if "DOCTYPE" was not scanned. | |
| scanRootElementHook | back to summary |
|---|---|
| protected boolean scanRootElementHook() throws IOException, XNIException Scan for root element hook. This method is a hook for subclasses to add code that handles scanning for the root element. When scanning a document fragment, there is no "root" element. However, when scanning a full XML document, the scanner must handle the root element specially.
| |