scala.xml

package scala.xml

Type members

Classlikes

class Atom[+A](val data: A) extends Node

XML leaf container for any data of type A.

XML leaf container for any data of type A.

final case class Comment(commentText: String) extends Node

XML leaf for comments.

XML leaf for comments.

final case class Elem(prefix: Option[String], label: String, attributes1: MetaData, scope: Option[Scope], minimizeEmpty: Boolean, child: Node*) extends Node

XML element.

XML element.

Companion:
object
object Elem
Companion:
class
final case class EntityRef(entityName: String)(implicit ev: XmlEntityRefEmbeddable) extends Node

XML leaf for entity references.

XML leaf for entity references.

final case class Group(nodes: Seq[Node]) extends Node

A hack to group XML nodes in one node.

A hack to group XML nodes in one node.

sealed trait MetaData

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

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.
class NamespaceBinding(key: String, url: String, next: NamespaceBinding) extends Scope
Companion:
object
Companion:
class
sealed trait Node

Trait representing XML tree.

Trait representing XML tree.

class NodeBuffer extends Seq[Node]

Internal structure used by scalac to create literals

Internal structure used by scalac to create literals

case object Null extends MetaData
final case class PrefixedAttribute[T](pre: String, key: String, e: T, next: MetaData)(implicit evidence$1: XmlAttributeEmbeddable[T], ev: XmlAttributeEmbeddable[T]) extends MetaData
sealed trait Scope
final case class Text(text: String) extends Atom[String]

XML leaf for text.

XML leaf for text.

case object TopScope extends NamespaceBinding
final case class UnprefixedAttribute[T](key: String, e: T, next: MetaData)(implicit ev: XmlAttributeEmbeddable[T]) extends MetaData
@implicitNotFound(msg = "Cannot embed value of type ${T} in xml attribute, implicit XmlAttributeEmbeddable[${T}] not found.\nThe following types are supported:\n- String\n- Boolean (false → remove attribute, true → empty attribute)\n- () => Unit, T => Unit event handler. Note: The return type needs to be Unit!\n- mhtml.Var[T], mhtml.Rx[T] where T is XmlAttributeEmbeddable\n- Option[T] where T is XmlAttributeEmbeddable (None → remove from the DOM)\n")

Evidence that T can be embedded in xml attribute position.

Evidence that T can be embedded in xml attribute position.

Companion:
object
@implicitNotFound(msg = "Cannot embed value of type ${T} in xml element, implicit XmlElementEmbeddable[${T}] not found.\nThe following types are supported:\n- String, Int, Long, Double, Float, Char (converted with .toString)\n- xml.Node, Seq[xml.Node]\n- mhtml.Var[T], mhtml.Rx[T] where T is XmlElementEmbeddable\n- Option[T] where T is XmlElementEmbeddable (None → remove from the DOM)\n")

Evidence that T can be embedded in xml element position.

Evidence that T can be embedded in xml element position.

Companion:
object
Companion:
class
@implicitNotFound("EntityRef are not supported, use Strings instead:

{\"<\"}

")