namespace prefix (may be null, but not the empty string)
the element name
the attribute map
the scope containing the namespace bindings
true
if this element should be serialized as minimized (i.e. "<el/>") when
empty; false
if it should be written out in long form.
the children of this node Copyright 2008 Google Inc. All Rights Reserved.
(Since version 2.10.0) This constructor is retained for backward compatibility. Please use the primary constructor, which lets you specify your own preference for minimizeEmpty
.
Returns a new element with updated attributes, resolving namespace uris from this element's scope.
Returns a new element with updated attributes, resolving namespace uris from this element's scope. See MetaData.update for details.
MetaData with new and updated attributes
a new symbol with updated attributes
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.
the children of this node Copyright 2008 Google Inc.
Returns a copy of this element with any supplied arguments replacing this element's value for that field.
Returns a copy of this element with any supplied arguments replacing this element's value for that field.
a new symbol with updated attributes
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.
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
the element name
true
if this element should be serialized as minimized (i.e.
true
if this element should be serialized as minimized (i.e. "<el/>") when
empty; false
if it should be written out in long form.
Appends qualified name of this node to StringBuilder
.
Appends qualified name of this node to StringBuilder
.
convenience, same as getNamespace(this.prefix)
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)
namespace prefix (may be null, but not the empty string)
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
the scope containing the namespace bindings
Returns concatenation of text(n)
for each child n
.
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
.
The case class
Elem
extends theNode
class, providing an immutable data object representing an XML element.