in scala/xml
class Elem

case class Elem(namespace$$: String, label$$: String, attributes: AttributeSeq, 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:
namespace - the namespace code as assigned by NamespaceRegistry
label - the element name
attribute - the attribute map
child - the children of this node

Field Summary
  val attributes: AttributeSeq
     attribute axis - all attributes of this node, in order defined by attrib
  val child: Seq[Node]
     child axis (all children of this node)
final val labelIntern: String
final val namespaceIntern: String

Method Summary
final def %(attrs: Seq[Attribute]): Elem
     Return a new element with updated attributes
final def %(attr: Attribute): Elem
     Return a new symbol with updated attribute
final def label: String
     QName (the label of this node).
final def namespace: String
     the namespace of this node

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

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

Methods inherited from scala/CaseClass-class
caseArity, caseElement

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

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

Methods inherited from scala/xml/Node-class
attribute, descendant, descendant_or_self, equals, hashCode, theSeq, toString

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

Field Detail

attributes

  val attributes: AttributeSeq
attribute axis - all attributes of this node, in order defined by attrib

child

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

namespaceIntern

  final val namespaceIntern: String

labelIntern

  final val labelIntern: String
Method Detail

namespace

  final def namespace: String
the namespace of this node

label

  final def label: String
QName (the label of this node). I.e. "foo" for <foo/>)

%

  final def %(attrs: Seq[Attribute]): Elem
Return a new element with updated attributes
Parameters:
attrs -
Returns:
a new symbol with updated attributes

%

  final def %(attr: Attribute): Elem
Return a new symbol with updated attribute
Parameters:
attr -
Returns:
a new symbol with updated attribute