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.
Convenience method, looks up a prefixed attribute in attributes of this node.
Convenience method, looks up a prefixed attribute in attributes of this node.
Same as attributes.getValue(uri, this, key)
-
namespace of queried attribute (may not be null).
of queried attribute.
value of PrefixedAttribute
with given namespace
and given key, otherwise null
.
Convenience method, looks up an unprefixed attribute in attributes of this node.
Convenience method, looks up an unprefixed attribute in attributes of this node.
Same as attributes.getValue(key)
of queried attribute.
value of UnprefixedAttribute
with given key
in attributes, if it exists, otherwise null
.
Returns attribute meaning all attributes of this node, prefixed and unprefixed, in no particular order.
String representation of this node
String representation of this node
if true, strips comment nodes from result
We insist we're only equal to other xml.Equality
implementors,
which heads off a lot of inconsistency up front.
Returns child axis i.e.
Descendant axis (all descendants of this node, not including node itself) includes all text nodes, element nodes, comments and processing instructions.
Descendant axis (all descendants of this node, not including node itself) includes all text nodes, element nodes, comments and processing instructions.
Descendant axis (all descendants of this node, including thisa node) includes all text nodes, element nodes, comments and processing instructions.
Descendant axis (all descendants of this node, including thisa node) includes all text nodes, element nodes, comments and processing instructions.
The logic formerly found in typeTag$, as best I could infer it.
The logic formerly found in typeTag$, as best I could infer it.
Convenience method, same as scope.getURI(pre)
but additionally
checks if scope is null
.
Convenience method, same as scope.getURI(pre)
but additionally
checks if scope is null
.
the prefix whose namespace name we would like to obtain
the namespace if scope != null
and prefix was
found, else null
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.
used internally.
used internally. Atom/Molecule = -1 PI = -2 Comment = -3 EntityRef = -5
label of this node.
Appends qualified name of this node to StringBuilder
.
Appends qualified name of this node to StringBuilder
.
convenience, same as getNamespace(this.prefix)
Creates a list buffer as builder for this class
Creates a list buffer as builder for this class
Children which do not stringify to "" (needed for equality)
Children which do not stringify to "" (needed for equality)
prefix of this node
prefix of this node
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
method returning the namespace bindings of this node.
method returning the namespace bindings of this node. by default, this is TopScope, which means there are no namespace bindings except the predefined one for "xml".
Returns a text representation of this node.
Returns a text representation of this node. Note that this is not equivalent to the XPath node-test called text(), it is rather an implementation of the XPath function string() Martin to Burak: to do: if you make this method abstract, the compiler will now complain if there's no implementation in a subclass. Is this what we want? Note that this would break doc/DocGenator and doc/ModelToXML, with an error message like:
doc\DocGenerator.scala:1219: error: object creation impossible, since there is a deferred declaration of method text in class Node of type => String which is not implemented in a subclass new SpecialNode { ^
returns a sequence consisting of only this node
Same as toString(false)
.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
Returns a type symbol (e.g.
Returns a type symbol (e.g. DTD, XSD), default null
.
A hack to group XML nodes in one node for output.
1.0