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.
Inheritors
Properties
Functions
Link copied to clipboard
abstract fun subTreeReader(subtreeStartDepth: XmlStreamReader.SubtreeStartDepth = SubtreeStartDepth.CHILD): XmlStreamReader
Return another reader that starts and terminates at the current level (CURRENT) or the current level + 1 (CHILD), starting at the next node to be read from the stream.
Inherited functions
Link copied to clipboard
inline fun <T : XmlToken> XmlStreamReader.peekSeek(selectionPredicate: (T) -> Boolean = { true }): T?
Peek and seek forward until a token of type T is found. If it matches the selectionPredicate, consume the token and return it. Otherwise, return null
without consuming the token.