Xml

zio.blocks.schema.xml.Xml
See theXml companion object
sealed trait Xml

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

Companion
object
Source
Xml.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class CData
class Comment
class Element
class Text

Members list

Value members

Abstract methods

def as(xmlType: XmlType): Option[xmlType.Type]

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
def typeIndex: Int

Returns the type index for ordering.

Returns the type index for ordering.

Attributes

Source
Xml.scala
def unwrap(xmlType: XmlType): Option[xmlType.Unwrap]

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

Returns the XmlType of this XML node.

Returns the XmlType of this XML node.

Attributes

Source
Xml.scala

Concrete methods

def is(xmlType: XmlType): Boolean

Returns true if this XML node is of the specified type.

Returns true if this XML node is of the specified type.

Attributes

Source
Xml.scala
def printPretty: String

Renders this XML to a pretty-printed string (2-space indentation).

Renders this XML to a pretty-printed string (2-space indentation).

Attributes

Source
Xml.scala

Creates an XmlSelection from this XML node for fluent navigation.

Creates an XmlSelection from this XML node for fluent navigation.

Attributes

Source
Xml.scala