Document
A document information item (according to InfoSet spec). The comments
are copied from the Infoset spec, only augmented with some information
on the Scala types for definitions that might have no value.
Also plays the role of an XMLEvent
for pull parsing.
A document information item (according to InfoSet spec). The comments
are copied from the Infoset spec, only augmented with some information
on the Scala types for definitions that might have no value.
Also plays the role of an XMLEvent
for pull parsing.
- Authors
Burak Emir
Value members
Concrete methods
An unordered set of notation information items, one for each notation declared in the DTD. If any notation is multiply declared, this property has no value.
An unordered set of notation information items, one for each notation declared in the DTD. If any notation is multiply declared, this property has no value.
Inherited methods
Projection function, which returns elements of this
sequence based
on the string that
. Use:
Projection function, which returns elements of this
sequence based
on the string that
. Use:
this \ "foo"
to get a list of all children that are labelled with"foo"
;this \ "_"
to get a list of all child elements (wildcard);this \ "@foo"
to get the unprefixed attribute"foo"
ofthis
;this \ "@{uri}foo"
to get the prefixed attribute"pre:foo"
whose prefix"pre"
is resolved to the namespace"uri"
.
For attribute projections, the resulting scala.xml.NodeSeq attribute values are wrapped in a scala.xml.Group.
There is no support for searching a prefixed attribute by its literal prefix.
The document order is preserved.
- Inherited from
- NodeSeq
Convenience method which returns string text of the named attribute. Use:
Convenience method which returns string text of the named attribute. Use:
that \@ "foo"
to get the string text of attribute"foo"
;
- Inherited from
- NodeSeq
Projection function, which returns elements of this
sequence and of
all its subsequences, based on the string that
. Use:
Projection function, which returns elements of this
sequence and of
all its subsequences, based on the string that
. Use:
this \\ "foo" to get a list of all elements that are labelled with
"foo", including
this`;this \\ "_"
to get a list of all elements (wildcard), includingthis
;this \\ "@foo"
to get all unprefixed attributes"foo"
;this \\ "@{uri}foo"
to get all prefixed attribute"pre:foo"
whose prefix"pre"
is resolved to the namespace"uri"
.
For attribute projections, the resulting scala.xml.NodeSeq attribute values are wrapped in a scala.xml.Group.
There is no support for searching a prefixed attribute by its literal prefix.
The document order is preserved.
- Inherited from
- NodeSeq
- Inherited from
- StrictOptimizedSeqOps
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
- Inherited from
- IterableOnceOps
- Inherited from
- IterableOnceOps
- Definition Classes
- StrictOptimizedSeqOps -> StrictOptimizedSeqOps -> SeqOps
- Inherited from
- StrictOptimizedSeqOps
- Definition Classes
- ScalaVersionSpecificNodeSeq -> IterableOps
- Inherited from
- ScalaVersionSpecificNodeSeq
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
- Definition Classes
- ScalaVersionSpecificNodeSeq -> IterableOps
- Inherited from
- ScalaVersionSpecificNodeSeq
It's be nice to make these final, but there are probably people out there subclassing the XML types, especially when it comes to equals. However WE at least can pretend they are final since clearly individual classes cannot be trusted to maintain a semblance of order.
It's be nice to make these final, but there are probably people out there subclassing the XML types, especially when it comes to equals. However WE at least can pretend they are final since clearly individual classes cannot be trusted to maintain a semblance of order.
- Inherited from
- SeqOps
- Inherited from
- SeqOps
- Inherited from
- SeqOps
- Inherited from
- SeqOps
- Inherited from
- SeqOps
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
- Definition Classes
- ScalaVersionSpecificNodeSeq -> IterableOps
- Inherited from
- ScalaVersionSpecificNodeSeq
- Inherited from
- IterableOnceOps
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
- Definition Classes
- StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from
- StrictOptimizedIterableOps
Deprecated and Inherited methods
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- SeqOps
- Deprecated
- Inherited from
- IterableOps
- Deprecated
- Inherited from
- SeqOps
- Deprecated
- Inherited from
- Iterable
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOnceOps
Concrete fields
- This property is not strictly speaking part of the infoset of the document. Rather it is an indication of whether the processor has read the complete DTD. Its value is a boolean. If it is false, then certain properties (indicated in their descriptions below) may be unknown. If it is true, those properties are never unknown.
An ordered list of child information items, in document order. The list contains exactly one element information item. The list also contains one processing instruction information item for each processing instruction outside the document element, and one comment information item for each comment outside the document element. Processing instructions and comments within the DTD are excluded. If there is a document type declaration, the list also contains a document type declaration information item.
An ordered list of child information items, in document order. The list contains exactly one element information item. The list also contains one processing instruction information item for each processing instruction outside the document element, and one comment information item for each comment outside the document element. Processing instructions and comments within the DTD are excluded. If there is a document type declaration, the list also contains a document type declaration information item.
The element information item corresponding to the document element.
The element information item corresponding to the document element.
The name of the character encoding scheme in which the document entity is expressed.
The name of the character encoding scheme in which the document entity is expressed.
An indication of the standalone status of the document, either
true or false. This property is derived from the optional standalone
document declaration in the XML declaration at the beginning of the
document entity, and has no value (None
) if there is no
standalone document declaration.
An indication of the standalone status of the document, either
true or false. This property is derived from the optional standalone
document declaration in the XML declaration at the beginning of the
document entity, and has no value (None
) if there is no
standalone document declaration.
A string representing the XML version of the document. This
property is derived from the XML declaration optionally present at
the beginning of the document entity, and has no value (None
)
if there is no XML declaration.
A string representing the XML version of the document. This
property is derived from the XML declaration optionally present at
the beginning of the document entity, and has no value (None
)
if there is no XML declaration.