package xml
Contains the model classes for XML/HTML tags.
Overview
* Examples of interesting nodes are:
- XmlSingleNode which represents a singleton xml/html node;
- XmlComposedNode which represents a composed xml/html node;
- XmlCommentNode which represents an xml/html comment.
- Alphabetic
- By Inheritance
- xml
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
XmlASTNode
extends HASTNode
It represents the "entry point" for the XML AST.
-
case class
XmlAttributeNode
(name: XmlNameNode, value: Option[StringLiteralNode]) extends XmlASTNode with Product with Serializable
It represents a node attribute.
It represents a node attribute. Attributes can be in the form attr="value", but it also considers hanging attributes with no value.
- name
the name of the attribute
- value
the optional value of the attribute.
-
case class
XmlCDATANode
(contents: XmlTextNode) extends XmlElementNode with Product with Serializable
It represents a CDATA node.
It represents a CDATA node. Contents of CDATA nodes are ignored by a parser. CDATA tags match <![CDATA[...any string but "]]>"..]]> pattern.
- contents
the contents of the CDATA node.
-
case class
XmlCommentNode
(contents: String) extends XmlElementNode with Product with Serializable
It represents a comment nodes.
It represents a comment nodes. Comments node are in the form .
- contents
the contents of the comment as a string.
-
case class
XmlComposedNode
(name: XmlNameNode, attributes: Seq[XmlAttributeNode], elements: Seq[XmlElementNode]) extends XmlElementNode with Product with Serializable
It represents XML nodes with double tag nodes (i.e., <tag attr="val" ...
It represents XML nodes with double tag nodes (i.e., <tag attr="val" ... > [children] </tag> ).
- name
the name of the composed node.
- attributes
the sequence of attributes for the composed node.
-
case class
XmlDocumentNode
(prolog: Option[XmlElementNode], rootElement: XmlElementNode) extends XmlASTNode with Product with Serializable
Represents an XML Document.
Represents an XML Document.
- prolog
the optional prolog element.
- rootElement
the root Xml Element for the document.
- trait XmlElementNode extends XmlASTNode
-
case class
XmlIslandNode
(nodes: Seq[XmlASTNode]) extends HASTNode with Product with Serializable
An Xml Island node, that is, a sequence of XmlASTNode found in an island.
An Xml Island node, that is, a sequence of XmlASTNode found in an island.
- nodes
the sequence of nodes composing the island.
-
case class
XmlNameNode
(value: String) extends XmlASTNode with Product with Serializable
It represents a XML Name.
It represents a XML Name. It identifies legal tag names.
-
case class
XmlPrologNode
(attributes: Seq[XmlAttributeNode]) extends XmlElementNode with Product with Serializable
It represents the XML prolog.
It represents the XML prolog. It optionally reports the version and encoding
-
case class
XmlSingleNode
(name: XmlNameNode, attributes: Seq[XmlAttributeNode]) extends XmlElementNode with Product with Serializable
It represents XML nodes, wither single tag nodes (i.e., <tag attrs..
It represents XML nodes, wither single tag nodes (i.e., <tag attrs.. />).
- name
the name of the single node.
- attributes
the sequence of attributes for the single node.
-
case class
XmlTextNode
(contents: String, embeddedContents: Option[EmbeddedContentsNode] = None) extends XmlElementNode with EmbeddedContentsProvider with Product with Serializable
It represents text contained between tags.
It represents text contained between tags.
- contents
the contents of the XML text node.
Value Members
-
object
XmlImplicits
If imported, allows to generate code from a XmlASTNode