LexingXmlStreamReader
An XmlStreamReader that provides XmlToken elements from an XmlLexer. This class internally maintains a peek state, lastToken, etc., but delegates all parsing operations to the scanner.
Parameters
source
The XmlLexer to use for XML parsing.
Properties
Functions
Link copied to clipboard
open override fun subTreeReader(subtreeStartDepth: XmlStreamReader.SubtreeStartDepth): 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.