java.lang.Object | ||||
↳ | org.apache.xerces.impl.XMLScanner | |||
↳ | org.apache.xerces.impl.XMLDocumentFragmentScannerImpl | |||
↳ | org.apache.xerces.impl.XMLDocumentScannerImpl | |||
↳ | org.apache.xerces.impl.XMLNSDocumentScannerImpl |
The scanner acts as the source for the document information which is communicated to the document handler. This class scans an XML document, checks if document has a DTD, and if DTD is not found the scanner will remove the DTD Validator from the pipeline and perform namespace binding. Note: This scanner should only be used when the namespace processing is on!
This component requires the following features and properties from the component manager that uses it:
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
XMLNSDocumentScannerImpl.NSContentDispatcher | Dispatcher to handle content scanning. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.impl.XMLDocumentScannerImpl
| |||||||||||
From class
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
| |||||||||||
From class
org.apache.xerces.impl.XMLScanner
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
fBindNamespaces | If is true, the dtd validator is no longer in the pipeline and the scanner should bind namespaces | ||||||||||
fPerformValidation | If validating parser, make sure we report an error in the scanner if DTD grammar is missing. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.impl.XMLDocumentScannerImpl
| |||||||||||
From class
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
| |||||||||||
From class
org.apache.xerces.impl.XMLScanner
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Resets the component.
| |||||||||||
The scanner is responsible for removing DTD validator
from the pipeline if it is not needed.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a content dispatcher.
| |||||||||||
Scans an attribute.
| |||||||||||
Scans an end element.
| |||||||||||
Scans a start element.
| |||||||||||
Scans the remainder of a start or empty tag after the element name.
| |||||||||||
Scans the name of an element in a start or empty tag.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.impl.XMLDocumentScannerImpl
| |||||||||||
From class
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
| |||||||||||
From class
org.apache.xerces.impl.XMLScanner
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.xerces.impl.XMLEntityHandler
| |||||||||||
From interface
org.apache.xerces.xni.parser.XMLComponent
| |||||||||||
From interface
org.apache.xerces.xni.parser.XMLDocumentScanner
| |||||||||||
From interface
org.apache.xerces.xni.parser.XMLDocumentSource
|
If is true, the dtd validator is no longer in the pipeline and the scanner should bind namespaces
If validating parser, make sure we report an error in the scanner if DTD grammar is missing.
Resets the component. The component can query the component manager about any features and properties that affect the operation of the component.
componentManager | The component manager. |
---|
XMLConfigurationException |
---|
The scanner is responsible for removing DTD validator from the pipeline if it is not needed.
dtdValidator | The DTDValidator |
---|
Creates a content dispatcher.
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.
attributes | The attributes list for the scanned attribute. |
---|
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.
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.
IOException | |
---|---|
XNIException |
Scans the remainder of a start or empty tag after the element name.
IOException | |
---|---|
XNIException |