5.35 XMLReaderService

The XMLReaderService allows XML files to be read using a StAX stream reader.

The Streaming API for XML (StAX) is an API for pull-parsing XML.

The streaming API gives parsing control to the programmer by exposing a simple iterator-based API.

This allows the programmer to ask for the next event (pull the event) and allows state to be stored in a procedural fashion.

The XMLReaderService uses the Woodstox API.

The XMLReaderService supports the following commands:

5.35.1 SERVICE_LOAD

5.35.2 SERVICE_GET

5.35.3 SET

5.35.4 OPEN

Example

 

Example

 

5.35.7 SERVICE_UNLOAD