in scala/xml
class NodeSeq

abstract class NodeSeq()
extends Seq[Node]
with ScalaObject
Implementing classes or objects:
class Node()
class Document()

a wrapper around Seq[Node] that adds XPath and comprehension methods

Method Summary
  def \(that: String): NodeSeq
     projection function.
  def \\(that: String): NodeSeq
     projection function.
  def apply(i: Int): Node
  def apply(f: (Node) => Boolean): NodeSeq
  def asList: List[Node]
  def elements: Iterator[Node]
     Creates a new iterator over all elements contained in this object.
override def equals(x: Any): Boolean
     structural equality
  def filter(f: (Node) => Boolean): NodeSeq
  def flatMap(f: (Node) => NodeSeq): NodeSeq
  def length: Int
     Returns the length of the sequence.
  def map(f: (Node) => Node): NodeSeq
  def text: String
abstract def theSeq: Seq[Node]
override def toString(): String
     Customizes the toString method.

Methods inherited from java/lang/Object-class
clone, eq, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/Iterable-class
/:, :\, concat, exists, find, foldLeft, foldRight, forall, foreach, sameElements

Methods inherited from scala/ScalaObject-class
getScalaType

Methods inherited from scala/Seq-class
concat, copyToArray, drop, indexOf, isDefinedAt, lastIndexOf, stringPrefix, subseq, take, toList

Method Detail

theSeq

  abstract def theSeq: Seq[Node]

length

  def length: Int
Returns the length of the sequence.
Returns:
the sequence length.

elements

  def elements: Iterator[Node]
Creates a new iterator over all elements contained in this object.
Returns:
the new iterator

apply

  def apply(i: Int): Node

apply

  def apply(f: (Node) => Boolean): NodeSeq

equals

  override def equals(x: Any): Boolean
structural equality

\

  def \(that: String): NodeSeq
projection function. Similar to XPath, use this \ "foo" to get a list of all elements of this sequence that are labelled with "foo". Use \ "_" as a wildcard. The document order is preserved.

\\

  def \\(that: String): NodeSeq
projection function. Similar to XPath, use this \\ 'foo to get a list of all elements of this sequence that are labelled with "foo". Use \ "_" as a wildcard. The document order is preserved.

toString

  override def toString(): String
Customizes the toString method.
Returns:
a string representation of this sequence.

asList

  def asList: List[Node]

map

  def map(f: (Node) => Node): NodeSeq

flatMap

  def flatMap(f: (Node) => NodeSeq): NodeSeq

filter

  def filter(f: (Node) => Boolean): NodeSeq

text

  def text: String