in scala/xml
class Elem

case class Elem(prefix: String, label: String, attributes: MetaData, scope: NamespaceBinding, child: Node*)
extends Node
with ScalaObject
with CaseClass

The case class Elem implements the Node trait, providing an immutable data object representing an XML element.
Author:
Burak Emir
Parameters:
prefix - (may be null)
label - the element name
attribute - the attribute map
child - the children of this node

Field Summary
override val attributes: MetaData
     Attribute axis - all attributes of this node, in order defined by attrib
  val child: Seq[Node]
     child axis (all children of this node)
  val label: String
     label of this node.
override val prefix: String
     prefix of this node
override val scope: NamespaceBinding
     the namespace bindings

Method Summary
final def %(attrs: MetaData): Elem
     Return a new element with updated attributes
override def text: String

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/CaseClass-class
caseArity, caseElement, caseName

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/Node-class
attribute, attribute, descendant, descendant_or_self, equals, getNamespace, nameToString, namespace, theSeq, toString, toString, xmlType

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

Field Detail

prefix

  override val prefix: String
prefix of this node

label

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

attributes

  override val attributes: MetaData
Attribute axis - all attributes of this node, in order defined by attrib

scope

  override val scope: NamespaceBinding
the namespace bindings

child

  val child: Seq[Node]
child axis (all children of this node)
Method Detail

%

  final def %(attrs: MetaData): Elem
Return a new element with updated attributes
Parameters:
attrs -
Returns:
a new symbol with updated attributes

text

  override def text: String