Package

scala

xml

Permalink

package xml

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. xml
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class Atom[+A] extends SpecialNode with Serializable

    Permalink

    The class Atom provides an XML node for text (PCDATA).

    The class Atom provides an XML node for text (PCDATA). It is used in both non-bound and bound XML representations.

  2. trait Attribute extends MetaData

    Permalink

    The Attribute trait defines the interface shared by both scala.xml.PrefixedAttribute and scala.xml.UnprefixedAttribute.

    The Attribute trait defines the interface shared by both scala.xml.PrefixedAttribute and scala.xml.UnprefixedAttribute.

    Version

    1.0

  3. case class Comment(commentText: String) extends SpecialNode with Product with Serializable

    Permalink

    The class Comment implements an XML node for comments.

    The class Comment implements an XML node for comments.

    commentText

    the text contained in this node, may not contain "--"

  4. class Document extends NodeSeq with XMLEvent with Serializable

    Permalink

    A document information item (according to InfoSet spec).

    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.

    Annotations
    @SerialVersionUID()
    Version

    1.0, 26/04/2005

  5. class Elem extends Node with Serializable

    Permalink

    The case class Elem extends the Node class, providing an immutable data object representing an XML element.

  6. case class EntityRef(entityName: String) extends SpecialNode with Product with Serializable

    Permalink

    The class EntityRef implements an XML node for entity references.

    The class EntityRef implements an XML node for entity references.

    entityName

    the name of the entity reference, for example amp.

    Version

    1.0

  7. type EntityResolver = org.xml.sax.EntityResolver

    Permalink
  8. trait Equality extends Equals

    Permalink
  9. final case class Group(nodes: Seq[Node]) extends Node with Product with Serializable

    Permalink

    A hack to group XML nodes in one node for output.

    A hack to group XML nodes in one node for output.

    Version

    1.0

  10. type InputSource = org.xml.sax.InputSource

    Permalink
  11. case class MalformedAttributeException(msg: String) extends RuntimeException with Product with Serializable

    Permalink
  12. abstract class MetaData extends AbstractIterable[MetaData] with Iterable[MetaData] with Equality with Serializable

    Permalink

    This class represents an attribute and at the same time a linked list of attributes.

    This class represents an attribute and at the same time a linked list of attributes. Every instance of this class is either

    • an instance of UnprefixedAttribute key,value or
    • an instance of PrefixedAttribute namespace_prefix,key,value or
    • Null, the empty attribute list.

    Namespace URIs are obtained by using the namespace scope of the element owning this attribute (see getNamespace).

    Copyright 2008 Google Inc. All Rights Reserved.

  13. case class NamespaceBinding(prefix: String, uri: String, parent: NamespaceBinding) extends Equality with Product with Serializable

    Permalink

    The class NamespaceBinding represents namespace bindings and scopes.

    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.

    Annotations
    @SerialVersionUID()
    Version

    1.0

  14. abstract class Node extends NodeSeq

    Permalink

    An abstract class representing XML with nodes of a labelled tree.

    An abstract class representing XML with nodes of a labelled tree. This class contains an implementation of a subset of XPath for navigation.

    Version

    1.1

  15. class NodeBuffer extends ArrayBuffer[Node]

    Permalink

    This class acts as a Buffer for nodes.

    This class acts as a Buffer for nodes. If it is used as a sequence of nodes Seq[Node], it must be ensured that no updates occur after that point, because scala.xml.Node is assumed to be immutable.

    Despite this being a sequence, don't use it as key in a hashtable. Calling the hashcode function will result in a runtime error.

    Version

    1.0

  16. abstract class NodeSeq extends AbstractSeq[Node] with collection.immutable.Seq[Node] with SeqLike[Node, NodeSeq] with Equality

    Permalink

    This class implements a wrapper around Seq[Node] that adds XPath and comprehension methods.

    This class implements a wrapper around Seq[Node] that adds XPath and comprehension methods.

    Version

    1.0

  17. class PCData extends Atom[String]

    Permalink

    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.

    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.

    Version

    1.0

  18. class PrefixedAttribute extends MetaData with Attribute

    Permalink

    prefixed attributes always have a non-null namespace.

  19. class PrettyPrinter extends AnyRef

    Permalink

    Class for pretty printing.

    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.

    Version

    1.0

  20. case class ProcInstr(target: String, proctext: String) extends SpecialNode with Product with Serializable

    Permalink

    an XML node for processing instructions (PI)

    an XML node for processing instructions (PI)

    target

    target name of this PI

    proctext

    text contained in this node, may not contain "?>"

  21. type SAXException = org.xml.sax.SAXException

    Permalink
  22. type SAXParseException = org.xml.sax.SAXParseException

    Permalink
  23. type SAXParser = javax.xml.parsers.SAXParser

    Permalink
  24. abstract class SpecialNode extends Node with XMLEvent

    Permalink

    SpecialNode is a special XML node which represents either text (PCDATA), a comment, a PI, or an entity ref.

    SpecialNode is a special XML node which represents either text (PCDATA), a comment, a PI, or an entity ref.

    SpecialNodes also play the role of scala.xml.pull.XMLEvents for pull-parsing.

  25. class Text extends Atom[String]

    Permalink

    The class Text implements an XML node for text (PCDATA).

    The class Text implements an XML node for text (PCDATA). It is used in both non-bound and bound XML representations.

  26. class TextBuffer extends AnyRef

    Permalink

    The class TextBuffer is for creating text nodes without surplus whitespace.

    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.

  27. abstract class TypeSymbol extends AnyRef

    Permalink
  28. class Unparsed extends Atom[String]

    Permalink

    An XML node for unparsed content.

    An XML node for unparsed content. It will be output verbatim, all bets are off regarding wellformedness etc.

  29. class UnprefixedAttribute extends MetaData with Attribute

    Permalink

    Unprefixed attributes have the null namespace, and no prefix field

Value Members

  1. object Attribute extends Serializable

    Permalink

    This singleton object contains the apply and unapply methods for convenient construction and deconstruction.

    This singleton object contains the apply and unapply methods for convenient construction and deconstruction.

    Version

    1.0

  2. object Elem extends Serializable

    Permalink

    This singleton object contains the apply and unapplySeq methods for convenient construction and deconstruction.

    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.

  3. object Equality

    Permalink

    In an attempt to contain the damage being inflicted on consistency by the ad hoc equals methods spread around xml, the logic is centralized and all the xml classes go through the xml.Equality trait.

    In an attempt to contain the damage being inflicted on consistency by the ad hoc equals methods spread around xml, the logic is centralized and all the xml classes go through the xml.Equality trait. There are two forms of xml comparison.

    1. def strict_==(other: scala.xml.Equality)

    This one tries to honor the little things like symmetry and hashCode contracts. The equals method routes all comparisons through this.

    1. xml_==(other: Any)

    This one picks up where strict_== leaves off. It might declare any two things equal.

    As things stood, the logic not only made a mockery of the collections equals contract, but also laid waste to that of case classes.

    Among the obstacles to sanity are/were:

    Node extends NodeSeq extends Seq[Node] MetaData extends Iterable[MetaData] The hacky "Group" xml node which throws exceptions with wild abandon, so don't get too close Rampant asymmetry and impossible hashCodes Most classes claiming to be equal to "String" if some specific stringification of it was the same. String was never going to return the favor.

  4. object MetaData extends Serializable

    Permalink

    Copyright 2008 Google Inc.

    Copyright 2008 Google Inc. All Rights Reserved.

  5. object MinimizeMode extends Enumeration

    Permalink

    Governs how empty elements (i.e.

    Governs how empty elements (i.e. those without child elements) should be serialized.

  6. object Node

    Permalink

    This singleton object contains the unapplySeq method for convenient deconstruction.

    This singleton object contains the unapplySeq method for convenient deconstruction.

    Version

    1.0

  7. object NodeSeq

    Permalink

    This object ...

    This object ...

    Version

    1.0

  8. object Null extends MetaData with Product with Serializable

    Permalink

    Essentially, every method in here is a dummy, returning Zero[T].

    Essentially, every method in here is a dummy, returning Zero[T]. It provides a backstop for the unusual collection defined by MetaData, sort of a linked list of tails.

    Version

    1.0

  9. object PCData extends Serializable

    Permalink

    This singleton object contains the applyand unapply methods for convenient construction and deconstruction.

    This singleton object contains the applyand unapply methods for convenient construction and deconstruction.

    Version

    1.0

  10. object PrefixedAttribute extends Serializable

    Permalink
  11. object Properties extends PropertiesTrait

    Permalink
  12. object QNode

    Permalink

    This object provides an extractor method to match a qualified node with its namespace URI

    This object provides an extractor method to match a qualified node with its namespace URI

    Version

    1.0

  13. object Source

    Permalink
  14. object Text extends Serializable

    Permalink

    This singleton object contains the applyand unapply methods for convenient construction and deconstruction.

    This singleton object contains the applyand unapply methods for convenient construction and deconstruction.

    Version

    1.0

  15. object TextBuffer

    Permalink
  16. object TopScope extends NamespaceBinding

    Permalink

    top level namespace scope.

    top level namespace scope. only contains the predefined binding for the "xml" prefix which is bound to "http://www.w3.org/XML/1998/namespace"

  17. object Unparsed extends Serializable

    Permalink

    This singleton object contains the applyand unapply methods for convenient construction and deconstruction.

    This singleton object contains the applyand unapply methods for convenient construction and deconstruction.

    Version

    1.0

  18. object UnprefixedAttribute extends Serializable

    Permalink
  19. object Utility extends TokenTests

    Permalink

    The Utility object provides utility functions for processing instances of bound and not bound XML classes, as well as escaping text nodes.

  20. object XML extends XMLLoader[Elem]

    Permalink

    The object XML provides constants, and functions to load and save XML elements.

    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.

    Version

    1.0, 25/04/2005

  21. val XercesClassName: String

    Permalink
  22. object Xhtml

    Permalink
  23. package dtd

    Permalink
  24. package factory

    Permalink
  25. package include

    Permalink
  26. package parsing

    Permalink
  27. package persistent

    Permalink
  28. package pull

    Permalink

    Classes needed to view an XML document as a series of events.

    Classes needed to view an XML document as a series of events. The document is parsed by an scala.xml.pull.XMLEventReader instance. You can treat it as an scala.collection.Iterator to retrieve the events, which are all subclasses of scala.xml.pull.XMLEvent.

    scala> val source = Source.fromString("""1.0" encoding="UTF-8" standalone="yes"?>
    customvalue"?>
    BAR">
    ]>Hello&bar;>""")
    
    source: scala.io.Source = non-empty iterator
    
    scala> val reader = new XMLEventReader(source)
    reader: scala.xml.pull.XMLEventReader = non-empty iterator
    
    scala> reader.foreach{ println(_) }
    EvProcInstr(instruction,custom value="customvalue")
    EvText(
    )
    EvElemStart(null,foo,,)
    EvText(Hello)
    EvComment( this is a comment )
    EvElemStart(null,bar,,)
    EvText(BAR)
    EvElemEnd(null,bar)
    EvElemStart(null,bar,,)
    EvEntityRef(gt)
    EvElemEnd(null,bar)
    EvElemEnd(null,foo)
    EvText(
    
    )
  29. package transform

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped