|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An interface for iterating XML events. Even though this interface
only contains a single method for iterating XML events, higher level
constructs can be written on top of this interface to provide more
powerful iteration capability. However, the nextEvent
method can always be used by applications for complete access to the
event stream.
Typically, the application will use the iteration method(s) on the
XMLPullParser. But this interface can also be used to
construct any type of event iterator, even one not based on parsing
XML streams.
Note:
Currently, the XMLEventIterator interface only contains
the single, low-level nextToken method for iterating XML
events. The EventIterator utility class is provided to
handle this shortcoming. As this API progresses, it is believed that
additional methods will be added to the XMLEventIterator
interface. However, this will be decided by actual users of the API.
Please let me know if you have
any suggestions or comments.
| Method Summary | |
XMLEvent |
nextEvent()
Returns the next event in the document or null if there are no more events. |
| Method Detail |
public XMLEvent nextEvent()
throws org.apache.xerces.xni.XNIException,
java.io.IOException
next field).
org.apache.xerces.xni.XNIException - Any XNI exception, possibly wrapping
another exception.
java.io.IOException - An IO exception from the parser, possibly
from a byte stream or character stream
supplied by the parser.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||