This class implements a wrapper around Seq[Node]
that adds XPath
and comprehension methods.
- Companion
- object
Value members
Concrete 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.
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"
;
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 methods
- 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
- Inherited from
- StrictOptimizedSeqOps
- 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
- Inherited from
- StrictOptimizedIterableOps
Deprecated and Inherited methods
- Deprecated
[Since version 2.13.0]
Use foldLeft instead of /:- Inherited from
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
Use foldRight instead of :\\- Inherited from
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.- Inherited from
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
Use iterableFactory instead- Inherited from
- IterableOps
- Deprecated
[Since version 2.13.0]
Use `dest ++= coll` instead- Inherited from
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)- Inherited from
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
Use segmentLength instead of prefixLength- Inherited from
- SeqOps
- Deprecated
[Since version 2.13.0]
Use coll instead of repr in a collection implementation, use the collection value itself from the outside- Inherited from
- IterableOps
- Deprecated
[Since version 2.13.0]
Use .reverseIterator.map(f).to(...) instead of .reverseMap(f)- Inherited from
- SeqOps
- Deprecated
[Since version 2.13.0]
Iterable.seq always returns the iterable itself- Inherited from
- Iterable
- Deprecated
[Since version 2.13.0]
Use .iterator instead of .toIterator- Inherited from
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
Use .to(LazyList) instead of .toStream- Inherited from
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
Use toIterable instead- Inherited from
- IterableOps