in scala/xml
class Node

abstract class Node()
extends NodeSeq
with ScalaObject
Implementing classes or objects:
class Elem(prefix: String, label: String, attributes: MetaData, scope: NamespaceBinding, child: Node*)
class SpecialNode()

Trait for representing XML using nodes of a labelled tree. This trait contains an implementation of a subset of XPath for navigation.

Method Summary
final def attribute(key: String): String
     returns value of a MetaData instance with the same key.
final def attribute(uri: String, key: String): String
     returns value of a MetaData instance with the given namespace and the given key.
  def attributes: MetaData
     attribute axis - all attributes of this node, in order defined by attrib
abstract def child: Seq[Node]
     child axis (all children of this node)
  def descendant: List[Node]
     descendant axis (all descendants of this node)
  def descendant_or_self: List[Node]
     descendant axis (all descendants of this node)
override def equals(x: Any): Boolean
     structural equality
  def getNamespace(_pre: String): String
abstract override def hashCode(): Int
     returns a hashcode
abstract def label: String
     label of this node.
  def nameToString(sb: StringBuffer): StringBuffer
  def namespace: String
  def prefix: String
     prefix of this node
  def scope: NamespaceBinding
     the namespace bindings
final def theSeq: List[Node]
     method for NodeSeq
  def toString(stripComment: Boolean): String
     String representation of this node
override def toString(): String
  def xmlType(): TypeSymbol
     returns a type symbol (e.g.

Methods inherited from java/lang/Object-class
clone, eq, finalize, getClass, 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

Methods inherited from scala/xml/NodeSeq-class
\, \\, apply, asList, elements, filter, flatMap, length, map

Method Detail

prefix

  def prefix: String
prefix of this node

label

  abstract def label: String
label of this node. I.e. "foo" for <foo/>)

scope

  def scope: NamespaceBinding
the namespace bindings

namespace

  def namespace: String

getNamespace

  def getNamespace(_pre: String): String

attribute

  final def attribute(key: String): String
returns value of a MetaData instance with the same key. For efficiency, the namespace is not checked.

attribute

  final def attribute(uri: String, key: String): String
returns value of a MetaData instance with the given namespace and the given key. Note that unqualified attributes have namespace null.

attributes

  def attributes: MetaData
attribute axis - all attributes of this node, in order defined by attrib

child

  abstract def child: Seq[Node]
child axis (all children of this node)

descendant

  def descendant: List[Node]
descendant axis (all descendants of this node)

descendant_or_self

  def descendant_or_self: List[Node]
descendant axis (all descendants of this node)

equals

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

hashCode

  abstract override def hashCode(): Int
returns a hashcode

theSeq

  final def theSeq: List[Node]
method for NodeSeq

toString

  def toString(stripComment: Boolean): String
String representation of this node
Parameters:
stripComment - if true, strips comment nodes from result

toString

  override def toString(): String
See Also:
"toString(Boolean)"

nameToString

  def nameToString(sb: StringBuffer): StringBuffer

xmlType

  def xmlType(): TypeSymbol
returns a type symbol (e.g. DTD, XSD), default null