xmlparser is a low-level, pull-based, zero-allocation XML 1.0 parser.
rust
for token in xmlparser::Tokenizer::from("<tagname name='value'/>") {
println!("{:?}", token);
}
This library is basically a low-level XML tokenizer that preserves a position of the tokens and does not intend to be used directly. If you are looking for a more high-level solution - checkout roxmltree.
StrSpan
objects which contain a position of the data in the original document.cargo-bloat
.<root><child></root></child>
or a string without root element
will be parsed without errors. You should check for this manually.
On the other hand <a/><a/>
will lead to an error.<item a="v1" a="v2"/>
will be parsed without errors. You should check for this manually.Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.