Struct xml5ever::tokenizer::XmlTokenizer
[−]
[src]
pub struct XmlTokenizer<Sink> { pub sink: Sink, // some fields omitted }
The Xml tokenizer.
Fields
sink: Sink
Destination for tokens we emit.
Methods
impl<Sink: TokenSink> XmlTokenizer<Sink>
[src]
fn new(sink: Sink, opts: XmlTokenizerOpts) -> XmlTokenizer<Sink>
Create a new tokenizer which feeds tokens to a particular TokenSink
.
fn feed(&mut self, input: StrTendril)
Feed an input string into the tokenizer.
fn run(&mut self)
Run the state machine for as long as we can.
impl<Sink: TokenSink> XmlTokenizer<Sink>
[src]
fn end(&mut self)
Indicate that we have reached the end of the input.