Struct xml::reader::EventReader [] [src]

pub struct EventReader<R: Read> { /* fields omitted */ }

A wrapper around an std::io::Read instance which provides pull-based XML parsing.

Methods

impl<R: Read> EventReader<R>
[src]

[src]

Creates a new reader, consuming the given stream.

[src]

Creates a new reader with the provded configuration, consuming the given stream.

[src]

Pulls and returns next XML event from the stream.

If returned event is XmlEvent::Error or XmlEvent::EndDocument, then further calls to this method will return this event again.

[src]

[src]

[src]

Unwraps this EventReader, returning the underlying reader.

Note that this operation is destructive; unwrapping the reader and wrapping it again with EventReader::new() will create a fresh reader which will attempt to parse an XML document from the beginning.

impl<'r> EventReader<&'r [u8]>
[src]

[src]

A convenience method to create an XmlReader from a string slice.

Trait Implementations

impl<B: Read> Position for EventReader<B>
[src]

[src]

Returns the position of the last event produced by the reader.

impl<R: Read> IntoIterator for EventReader<R>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more