Function xml5ever::driver::parse_document

source ·
pub fn parse_document<Sink>(sink: Sink, opts: XmlParseOpts) -> XmlParser<Sink>
where Sink: TreeSink,
Expand description

Parse and send results to a TreeSink.

§Example

let mut sink = MySink;
parse_document(&mut sink, iter::once(my_str), Default::default());