peek

fun peek(): XmlEvent?

Try to peek the next event. Unlike peekFirst this function will progress the underlying stream if needed.