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()

An abstract class representing XML with nodes of a labelled tree. This class contains an implementation of a subset of XPath for navigation.
Author:
Burak Emir and others
Version:
1.1

Method Summary
final def attribute(key: String): String
     Looks up an unprefixed attribute in attributes of this node.
final def attribute(uri: String, key: String): String
     Looks up a prefixed attribute in attributes of this node.
  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, not including not itself)
  def descendant_or_self: List[Node]
     descendant axis (all descendants of this node, including 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
     Appends qualified name of this node to StringBuffer.
  def namespace: String
  def prefix: String
     prefix of this node
  def scope: NamespaceBinding
     the namespace bindings
abstract override def text: String
final def theSeq: List[Node]
     method for NodeSeq
  def toString(stripComment: Boolean): String
     String representation of this node
override def toString(): String
     Same as toString(false).
  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, 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
Looks up an unprefixed attribute in attributes of this node.
Parameters:
key - of queried attribute.
Returns:
value of UnprefixedAttribute with given key in attributes, if it exists, otherwise null.

attribute

  final def attribute(uri: String, key: String): String
Looks up a prefixed attribute in attributes of this node.
Parameters:
uri - namespace of queried attribute (may not be null).
key - of queried attribute.
Returns:
value of PrefixedAttribute with given namespace and given key, otherwise 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, not including not itself)

descendant_or_self

  def descendant_or_self: List[Node]
descendant axis (all descendants of this node, including 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
Same as toString(false).
See Also:
"toString(Boolean)"

nameToString

  def nameToString(sb: StringBuffer): StringBuffer
Appends qualified name of this node to StringBuffer.
Parameters:
sb -
Returns:
..

xmlType

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

text

  abstract override def text: String