javax.xml.stream
Interface XMLIterator

All Known Subinterfaces:
XMLEventReader
All Known Implementing Classes:
EventReaderDelegate

public interface XMLIterator

This interface provides a simple way to iterate over XML documents.

See Also:
XMLEvent, Characters, ProcessingInstruction, StartElement, EndElement

Method Summary
 boolean hasNext()
          Check if there are more events.
 XMLEvent next()
          Get the next XMLEvent
 

Method Detail

next

public XMLEvent next()
              throws XMLStreamException
Get the next XMLEvent

Throws:
XMLStreamException
See Also:
XMLEvent

hasNext

public boolean hasNext()
                throws XMLStreamException
Check if there are more events. Returns true if there are more elements and false otherwise.

Throws:
XMLStreamException
See Also:
XMLEvent