object xml
- Source
- xml.scala
- Alphabetic
- By Inheritance
- xml
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class XMLError(s: String) extends Error with Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addAttr(N: Elem, key: String, value: String): Elem
adds an attribute to a node
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
attr(N: Node, att: String, default: String): String
returns attribute value, default if attribute not present
-
def
attr(N: Node, att: String): String
returns attribute value, "" if attribute not present
-
def
attrInt(N: Node, att: String, exc: (String) ⇒ Throwable): Int
like attr but forces integer value
-
def
attrL(N: Node, att: String): LocalName
Turns an attribute into a LocalName *
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def closeTag(label: String): String
- def decodeURI(s: String): String
- def element(label: String, atts: List[(String, String)], body: String): String
- def encodeURI(s: String): String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get(url: URI): Node
dereference a URL and return XML
-
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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
namespace(ns: String): String
common namespaces
-
def
namespaces(nb: NamespaceBinding, seen: List[String] = Nil): List[(String, String)]
returns the list of namespaces of a node
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def openTag(label: String, atts: List[(String, String)], close: Boolean = false): String
- def post(url: URL, input: Node): Node
-
def
readFile(file: File): Node
reads an XML file and returns the first Node in it
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
trimOneLevel(n: Node): Node
removes empty direct children of a node
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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