A streaming parser API expands a base parser by building an iterative
method on top of the base parser. The iterative method allows a user to
pass a selected element type to the base parser, which can step through
the XML document until it locates a matching element. The base parser can
then extract the element, process the element as an event, and place the
event on an event stream for use by an application.