XmlStreamReader

interface XmlStreamReader

Provides stream-style access to an XML payload. This abstraction supports the ability to look ahead an arbitrary number of elements. It can also create "views" to subtrees of the document, guaranteeing that clients do not exceed bounds.

Properties

Link copied to clipboard
abstract val lastToken: XmlToken?

Return the last token that was consumed by the reader.

Functions

Link copied to clipboard
abstract fun nextToken(): XmlToken?

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

Link copied to clipboard
abstract fun skipNext()

Recursively skip the next token. Meant for discarding unwanted/unrecognized nodes in an XML document