peekSeek
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.
Parameters
selectionPredicate
predicate that evaluates nodes of the required type to match