XmlTagReader

An XmlStreamReader scoped to reading a single XML element tag XmlTagReader provides a "tag" scoped view into an XML document. Methods return null when the current tag has been exhausted.

Constructors

Link copied to clipboard
constructor(tag: XmlToken.BeginElement, reader: XmlStreamReader)

Properties

Link copied to clipboard
Link copied to clipboard

Get the fully qualified tag name of tag

Functions

Link copied to clipboard
fun drop()

Exhaust this XmlTagReader to completion. This should always be invoked to maintain deserialization state.

Link copied to clipboard

Check if the next token has a value, returns false if XmlToken.EndElement would be returned.

Link copied to clipboard

Return an XmlTagReader for the next XmlToken.BeginElement. The returned reader is only valid until nextTag is called or drop is invoked on it, whichever comes first.

Link copied to clipboard

Return the next actionable token or null if stream is exhausted.

Inherited functions

Link copied to clipboard

Unwrap the next token as XmlToken.Text and return its value or throw a DeserializationException

Link copied to clipboard
fun XmlTagReader.tryData(): <Error class: unknown class><String>

Attempt to get the text token as XmlToken.Text and return a result containing its' value on success or the exception thrown on failure.