A sealed trait representing an XML node.
The Xml type provides a complete representation of XML data with five possible cases: Element, Text, CData, Comment, and ProcessingInstruction.
Attributes
Members list
Value members
Abstract methods
Narrows this XML node to the specified type, returning Some if the types match or None otherwise. The return type is path-dependent on the xmlType parameter.
Narrows this XML node to the specified type, returning Some if the types match or None otherwise. The return type is path-dependent on the xmlType parameter.
Attributes
- Source
- Xml.scala
Returns the type index for ordering.
Extracts the underlying value from this XML if it matches the specified type. The return type is path-dependent on the xmlType parameter.
Extracts the underlying value from this XML if it matches the specified type. The return type is path-dependent on the xmlType parameter.
Attributes
- Source
- Xml.scala
Concrete methods
Returns true if this XML node is of the specified type.
Renders this XML to a compact string (no indentation).
Renders this XML to a string with custom configuration.
Renders this XML to a pretty-printed string (2-space indentation).
Creates an XmlSelection from this XML node for fluent navigation.