I also ran into the same problem, I made the hasNext variable as Number.
The problem is this -> orderXMLReader.next () == XMLStreamConstants.START_ELEMENT
Here orderXMLReader.next () returns a String value and compares with the constant of the number
source
share