peek

abstract fun peek(index: Int = 1): XmlToken?

Peek at the next token type. Successive calls will return the same value, meaning there is only one look-ahead at any given time during the parsing of input data.

Parameters

index

a positive integer representing index of node from current to peek. Index of 1 is the next node.