in scala.xml
class Node

abstract `class` Node
  `extends` scala.xml.NodeSeq
  `with` scala.ScalaObject

  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

Constructor Summary
| `def` this

Def Summary
`final` | `def` attribute ( key : java.lang.String ) : java.lang.String Convenience method, looks up an unprefixed attribute in attributes of this node. Same as attributes.getValue(key);
`final` | `def` attribute ( uri : java.lang.String , key : java.lang.String ) : java.lang.String Convenience method, looks up a prefixed attribute in attributes of this node. Same as attributes.getValue(uri, this, key);
| `def` attributes : scala.xml.MetaData Returns attribute meaning all attributes of this node, prefixed and unprefixed, in no particular order. In class Node, this defaults to Null (the empty attribute list).
| `def` child : scala.Seq[scala.xml.Node] returns child axis i.e. all children of this node
| `def` descendant : scala.List[scala.xml.Node] Descendant axis (all descendants of this node, not including node itself) includes all text nodes, element nodes, comments and processing instructions.
| `def` descendant_or_self : scala.List[scala.xml.Node] Descendant axis (all descendants of this node, including thisa node) includes all text nodes, element nodes, comments and processing instructions.
`override` | `def` equals ( x : scala.Any ) : scala.Boolean returns true if x is structurally equal to this node. Compares prefix, label, attributes and children
| `def` getNamespace ( pre : java.lang.String ) : java.lang.String convenience method, same as scope.getURI( pre ) but additionally checks if scope is null.
`override` | `def` hashCode : scala.Int Returns a hashcode. A standard implementation of hashcodes is obtained by calling Utility.hashCode(pre, label, attributes.hashCode(), child);
| `def` label : java.lang.String label of this node. I.e. "foo" for <foo/>)
| `def` nameToString ( sb : scala.runtime.compat.StringBuilder ) : scala.runtime.compat.StringBuilder Appends qualified name of this node to `StringBuilder`.
| `def` namespace : java.lang.String convenience, same as getNamespace(this.prefix)
| `def` prefix : java.lang.String prefix of this node
| `def` scope : scala.xml.NamespaceBinding method returning the namespace bindings of this node. by default, this is TopScope, which means there are no namespace bindings except the predefined one for "xml".
`override` | `def` text : java.lang.String Returns a text representation of this node. Note that this is not equivalent to the XPath node-test called text(), it is rather an implementation of the XPath function string()
`final` | `def` theSeq : scala.List[scala.xml.Node] returns a sequence consisting of only this node
| `def` toString ( stripComment : scala.Boolean ) : java.lang.String String representation of this node
`override` | `def` toString : java.lang.String Same as `toString(false)`.
| `def` typeTag$ : scala.Int used internally. Atom/Molecule = -1 PI = -2 Comment = -3 EntityRef = -5
| `def` xmlType : scala.xml.TypeSymbol Returns a type symbol (e.g. DTD, XSD), default `null`.

Constructor Detail

`def` this

Def Detail

final `def` attribute ( key : java.lang.String ) : java.lang.String

  Convenience method, looks up an unprefixed attribute in attributes of this node. Same as attributes.getValue(key);

param:
  key of queried attribute.
return:
  value of `UnprefixedAttribute` with given key in attributes, if it exists, otherwise `null`.

final `def` attribute ( uri : java.lang.String , key : java.lang.String ) : java.lang.String

  Convenience method, looks up a prefixed attribute in attributes of this node. Same as attributes.getValue(uri, this, key);

param:
  uri namespace of queried attribute (may not be null).
param:
  key of queried attribute.
return:
  value of `PrefixedAttribute` with given namespace and given key, otherwise `null`.

`def` attributes : scala.xml.MetaData

  Returns attribute meaning all attributes of this node, prefixed and unprefixed, in no particular order. In class Node, this defaults to Null (the empty attribute list).

return:
  all attributes of this node

`def` child : scala.Seq[scala.xml.Node]

  returns child axis i.e. all children of this node

return:
  all children of this node

`def` descendant : scala.List[scala.xml.Node]

  Descendant axis (all descendants of this node, not including node itself) includes all text nodes, element nodes, comments and processing instructions.

`def` descendant_or_self : scala.List[scala.xml.Node]

  Descendant axis (all descendants of this node, including thisa node) includes all text nodes, element nodes, comments and processing instructions.

override `def` equals ( x : scala.Any ) : scala.Boolean

  returns true if x is structurally equal to this node. Compares prefix, label, attributes and children

`def` getNamespace ( pre : java.lang.String ) : java.lang.String

  convenience method, same as scope.getURI( pre ) but additionally checks if scope is null.

param:
  pre the prefix whose namespace name we would like to obtain
return:
  the namespace if scope != null and prefix was found, else null

override `def` hashCode : scala.Int

  Returns a hashcode. A standard implementation of hashcodes is obtained by calling Utility.hashCode(pre, label, attributes.hashCode(), child);

`def` label : java.lang.String

  label of this node. I.e. "foo" for <foo/>)

`def` nameToString ( sb : scala.runtime.compat.StringBuilder ) : scala.runtime.compat.StringBuilder

  Appends qualified name of this node to `StringBuilder`.

param:
  sb
return:
  ..

`def` namespace : java.lang.String

  convenience, same as getNamespace(this.prefix)

`def` prefix : java.lang.String

  prefix of this node

`def` scope : scala.xml.NamespaceBinding

  method returning the namespace bindings of this node. by default, this is TopScope, which means there are no namespace bindings except the predefined one for "xml".

override `def` text : java.lang.String

  Returns a text representation of this node. Note that this is not equivalent to the XPath node-test called text(), it is rather an implementation of the XPath function string()

final `def` theSeq : scala.List[scala.xml.Node]

  returns a sequence consisting of only this node

`def` toString ( stripComment : scala.Boolean ) : java.lang.String

  String representation of this node

param:
  stripComment if true, strips comment nodes from result

override `def` toString : java.lang.String

  Same as `toString(false)`.

see:
  "toString(Boolean)"

`def` typeTag$ : scala.Int

  used internally. Atom/Molecule = -1 PI = -2 Comment = -3 EntityRef = -5

`def` xmlType : scala.xml.TypeSymbol

  Returns a type symbol (e.g. DTD, XSD), default `null`.