org.apache.xerces.impl
public class XML11NSDocumentScannerImpl extends XML11DocumentScannerImpl
This component requires the following features and properties from the component manager that uses it:
Version: $Id: XML11NSDocumentScannerImpl.java,v 1.13 2004/10/04 21:45:49 mrglavas Exp $
Nested Class Summary | |
---|---|
protected class | XML11NSDocumentScannerImpl.NS11ContentDispatcher
Dispatcher to handle content scanning. |
Field Summary | |
---|---|
protected boolean | fBindNamespaces
If is true, the dtd validator is no longer in the pipeline
and the scanner should bind namespaces |
protected boolean | fPerformValidation
If validating parser, make sure we report an error in the
scanner if DTD grammar is missing. |
Method Summary | |
---|---|
protected Dispatcher | createContentDispatcher() Creates a content dispatcher. |
void | reset(XMLComponentManager componentManager) |
protected void | scanAttribute(XMLAttributesImpl attributes)
Scans an attribute.
|
protected int | scanEndElement()
Scans an end element.
|
protected boolean | scanStartElement()
Scans a start element. |
protected boolean | scanStartElementAfterName()
Scans the remainder of a start or empty tag after the element name.
|
protected void | scanStartElementName()
Scans the name of an element in a start or empty tag.
|
void | setDTDValidator(XMLDTDValidatorFilter validator)
The scanner is responsible for removing DTD validator
from the pipeline if it is not needed.
|
[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.
Parameters: attributes The attributes list for the scanned attribute.
[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.
Returns: The element depth.
[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.
Returns: True if element is empty. (i.e. It matches production [44].
Returns: True if element is empty.
See Also: XML11NSDocumentScannerImpl
See Also: scanStartElement
Parameters: validator the DTD validator from the pipeline