Class Summary | |
class
|
Atom
[+A](val data : A) extends SpecialNode
The class
Atom provides an XML node for text (PCDATA).
It is used in both non-bound and bound XML representations. |
trait
|
Attribute
extends MetaData
|
case class
|
Comment
(val commentText : java.lang.String) extends SpecialNode with Product
The class
Comment implements an XML node for comments. |
class
|
Document
extends NodeSeq with XMLEvent
A document information item (according to InfoSet spec). The comments
are copied from the Infoset spec, only augmented with some information
on the Scala types for definitions that might have no value.
also plays the role of an
XMLEvent for pull parsing |
class
|
Elem
(val override prefix : java.lang.String, val label : java.lang.String, val override attributes : MetaData, val override scope : NamespaceBinding, val child : Node*) extends Node
The case class
Elem extends the Node class,
providing an immutable data object representing an XML element. |
case class
|
EntityRef
(val entityName : java.lang.String) extends SpecialNode with Product
The class
EntityRef implements an XML node for entity
references. |
case class
|
Group
(val nodes : Seq[Node]) extends Node with Product
A hack to group XML nodes in one node for output.
|
class
|
HasKeyValue
(key : java.lang.String) extends AnyRef
|
case class
|
MalformedAttributeException
(val msg : java.lang.String) extends java.lang.RuntimeException with Product
|
abstract class
|
MetaData
extends Iterable[MetaData]
|
case class
|
NamespaceBinding
(val prefix : java.lang.String, val uri : java.lang.String, val parent : NamespaceBinding) extends Product
The class
NamespaceBinding represents namespace bindings
and scopes. The binding for the default namespace is treated as a null
prefix. the absent namespace is represented with the null uri. Neither
prefix nor uri may be empty, which is not checked. |
abstract class
|
Node
extends NodeSeq
An abstract class representing XML with nodes of a labelled tree.
This class contains an implementation of a subset of XPath for navigation.
|
class
|
NodeBuffer
extends ArrayBuffer[Node]
|
abstract class
|
NodeSeq
extends Seq[Node] with SeqLike[Node, NodeSeq]
This class implements a wrapper around
Seq[Node] that
adds XPath and comprehension methods. |
case class
|
PCData
(val _data : java.lang.String) extends Atom[java.lang.String] with Product
This class (which is not used by all XML parsers, but always used by the XHTML one)
represents parseable character data, which appeared as CDATA sections in the input
and is to be preserved as CDATA section in the output.
|
class
|
PrefixedAttribute
(val pre : java.lang.String, val key : java.lang.String, val value : Seq[Node], val next : MetaData) extends Attribute
prefixed attributes always have a non-null namespace.
|
class
|
PrettyPrinter
(width : Int, step : Int) extends AnyRef
Class for pretty printing. After instantiating, you can use the
format() and formatNode() methods to convert XML to a formatted
string. The class can be reused to pretty print any number of
XML nodes.
|
case class
|
ProcInstr
(val target : java.lang.String, val proctext : java.lang.String) extends SpecialNode with Product
an XML node for processing instructions (PI)
|
abstract class
|
SpecialNode
extends Node with XMLEvent
|
class
|
Text
(data : java.lang.String) extends Atom[java.lang.String]
The class
Text implements an XML node for text (PCDATA).
It is used in both non-bound and bound XML representations. |
class
|
TextBuffer
extends AnyRef
The class
TextBuffer is for creating text nodes without
surplus whitespace. All occurrences of one or more whitespace in strings
appended with the append method will be replaced by a single
space character, and leading and trailing space will be removed completely. |
abstract class
|
TypeSymbol
extends AnyRef
|
class
|
Unparsed
(data : java.lang.String) extends Atom[java.lang.String]
An XML node for unparsed content. It will be output verbatim, all bets
are off regarding wellformedness etc.
|
class
|
UnprefixedAttribute
(val key : java.lang.String, val value : Seq[Node], next1 : MetaData) extends Attribute
Unprefixed attributes have the null namespace, and no prefix field
|
Object Summary | |
object
|
Attribute
extends AnyRef
Attribute defines the interface shared by both
PrefixedAttribute and UnprefixedAttribute
|
object
|
Comment
extends (java.lang.String) => Comment
|
object
|
Elem
extends AnyRef
This singleton object contains the apply and unapplySeq methods for convenient construction and
deconstruction. It is possible to deconstruct any Node instance (that is not a SpecialNode or
a Group) using the syntax
case Elem(prefix, label, attribs, scope, child @ _*) => ...
Copyright 2008 Google Inc. All Rights Reserved. |
object
|
EntityRef
extends (java.lang.String) => EntityRef
|
object
|
Group
extends (Seq[Node]) => Group
|
object
|
MalformedAttributeException
extends (java.lang.String) => MalformedAttributeException
|
object
|
MetaData
extends AnyRef
Copyright 2008 Google Inc. All Rights Reserved.
|
object
|
NamespaceBinding
extends (java.lang.String, java.lang.String, NamespaceBinding) => NamespaceBinding
|
object
|
Node
extends AnyRef
This object provides methods ...
|
object
|
NodeSeq
extends AnyRef
This object ...
|
case object
|
Null
extends MetaData with Product
|
object
|
PCData
extends (java.lang.String) => PCData
|
object
|
PrefixedAttribute
extends AnyRef
|
object
|
ProcInstr
extends (java.lang.String, java.lang.String) => ProcInstr
|
object
|
QNode
extends AnyRef
This object provides an extractor method to match a qualified node with its namespace URI
|
object
|
Source
extends AnyRef
|
object
|
Text
extends AnyRef
|
object
|
TextBuffer
extends AnyRef
|
object
|
TopScope
extends NamespaceBinding
top level namespace scope. only contains the predefined binding
for the "xml" prefix which is bound to
"http://www.w3.org/XML/1998/namespace"
|
object
|
Unparsed
extends AnyRef
|
object
|
UnprefixedAttribute
extends AnyRef
|
object
|
Utility
extends TokenTests
The
Utility object provides utility functions for processing
instances of bound and not bound XML classes, as well as escaping text nodes. |
object
|
XML
extends XMLLoader[Elem]
The object
XML provides constants, and functions to load
and save XML elements. Use this when data binding is not desired, i.e.
when XML is handled using Symbol nodes. |
object
|
Xhtml
extends AnyRef
|