XmlIncrementalSaxParser.pump

XmlStreamStatus pump() @safe

Pumps the parser, dispatching zero or more events to the handler.

This method repeatedly calls advance() on the underlying reader and dispatches each resulting event to the appropriate handler callback. It returns when the reader transitions to NEED_MORE_DATA or END_OF_STREAM, or when an error occurs.

Returns

The XmlStreamStatus that caused the pump to stop.

Throws

XmlException on parsing errors or incomplete tokens at true EOF.