Packages

object xml

Source
xml.scala
Linear Supertypes
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. case class XMLError(s: String) extends Error with Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAttr(N: Elem, key: String, value: String): Elem

    adds an attribute to a node

  5. def addAttrOrChild(n: Elem, key: String, value: Union[String, Node]): Elem

    adds either key="value" or <key>value</key> to a node, depending on whether the value is a string or a node

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def attr(N: Node, att: String, default: String): String

    returns attribute value, default if attribute not present

  8. def attr(N: Node, att: String): String

    returns attribute value, "" if attribute not present

  9. def attrInt(N: Node, att: String, exc: (String) ⇒ Throwable): Int

    like attr but forces integer value

  10. def attrL(N: Node, att: String): LocalName

    Turns an attribute into a LocalName *

  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  12. def closeTag(label: String): String
  13. def decodeURI(s: String): String
  14. def element(label: String, atts: List[(String, String)], body: String): String
  15. def encodeURI(s: String): String
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def get(url: URI): Node

    dereference a URL and return XML

  20. def getAttrOrChild(n: Node, key: String): (Node, Union[String, Node])

    dual of addAttrOrChild

    dual of addAttrOrChild

    returns

    the node without the child (if any) and the attribute/child (without the key), empty string by default

  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def namespace(ns: String): String

    common namespaces

  25. def namespaces(nb: NamespaceBinding, seen: List[String] = Nil): List[(String, String)]

    returns the list of namespaces of a node

  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. def openTag(label: String, atts: List[(String, String)], close: Boolean = false): String
  30. def post(url: URL, input: Node): Node
  31. def readFile(file: File): Node

    reads an XML file and returns the first Node in it

  32. def splitOffChild(node: Node, label: String): (Node, Option[Node])

    removes the child with label "label" from "node" (if any), returns the remaining node and that child

  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. def trimOneLevel(n: Node): Node

    removes empty direct children of a node

  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  39. def writeFile(N: Node, file: File): Unit

    writes an XML Node to a file

    writes an XML Node to a file

    overwrites existing files, creates directories if necessary

Inherited from AnyRef

Inherited from Any

Ungrouped