XmlLexerResult unexpectedEof()
Sets the lexer to ERROR state and throws an UNEXPECTED_EOF exception.
ERROR
UNEXPECTED_EOF
This is called when the stream ends before a token is complete.
XmlException
XmlErrorCode.UNEXPECTED_EOF