Projection function, which returns elements of this
sequence based
on the string that
.
Projection function, which returns elements of this
sequence based
on the string that
. Use:
this \ "foo"
to get a list of all elements that are labelled with "foo"
;\ "_"
to get a list of all elements (wildcard);ns \ "@foo"
to get the unprefixed attribute "foo"
;ns \ "@{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.
Convenience method which returns string text of the named attribute.
Convenience method which returns string text of the named attribute. Use:
that \@ "foo"
to get the string text of attribute "foo"
;
Projection function, which returns elements of this
sequence and of
all its subsequences, based on the string that
.
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"
;\\ "_"
to get a list of all elements (wildcard);ns \\ "@foo"
to get the unprefixed attribute "foo"
;ns \\ "@{uri}foo"
to get each 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.
9.
9. 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.
The base URI of the document entity.
We insist we're only equal to other xml.Equality
implementors,
which heads off a lot of inconsistency up front.
An ordered list of child information items, in document order.
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 dtd that comes with the document, if any
The name of the character encoding scheme in which the document entity is expressed.
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.
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.
Creates a list buffer as builder for this class
Creates a list buffer as builder for this class
An unordered set of notation information items, one for each notation declared in the DTD.
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.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
An indication of the standalone status of the document, either true or false.
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.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
An unordered set of unparsed entity information items, one for each unparsed entity declared in the DTD.
A string representing the XML version of the document.
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 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.1.0, 26/04/2005