Aalto StAX Parsing: Peek To Next Element
Overview Aalto provides a feature to peek into the next XML element from the current XML element. This is achieved by using XMLEventReader.peek() method. Note that according JSR-173 specification, XmlEventReader.peek() method returns the next element but does not take it off the stream. This sample program demonstrates how to peek into the next XML element. … Read more