XmlToken

sealed class XmlToken

Raw tokens produced when reading an XML document as a stream

Inheritors

Types

Link copied to clipboard
data class BeginElement(val depth: Int, val name: XmlToken.QualifiedName, val attributes: Map<XmlToken.QualifiedName, String> = emptyMap(), val nsDeclarations: List<XmlToken.Namespace> = emptyList()) : XmlToken

The opening of an XML element

Link copied to clipboard

The end of the XML stream to signal that the XML-encoded value has no more tokens

Link copied to clipboard
data class EndElement(val depth: Int, val name: XmlToken.QualifiedName) : XmlToken

The closing of an XML element

Link copied to clipboard
data class Namespace(val uri: String, val prefix: String? = null)

An namespace declaration (xmlns)

Link copied to clipboard
data class QualifiedName(val local: String, val prefix: String? = null)

Defines the name and namespace of an element

Link copied to clipboard
Link copied to clipboard
data class Text(val depth: Int, val value: String?) : XmlToken

An XML element text as string

Properties

Link copied to clipboard
abstract val depth: Int

Functions

Link copied to clipboard
open override fun toString(): String