Crates.io | xmlparser |
lib.rs | xmlparser |
version | 0.13.6 |
source | src |
created_at | 2017-12-15 14:09:53.052102 |
updated_at | 2023-09-30 15:21:25.478529 |
description | Pull-based, zero-allocation XML parser. |
homepage | |
repository | https://github.com/RazrFalcon/xmlparser |
max_upload_size | |
id | 43197 |
size | 121,762 |
xmlparser is a low-level, pull-based, zero-allocation XML 1.0 parser.
for token in xmlparser::Tokenizer::from("<tagname name='value'/>") {
println!("{:?}", token);
}
This library is basically a low-level XML tokenizer that preserves the positions of the tokens and is not intended to be used directly. If you are looking for a higher level solution, check out roxmltree.
StrSpan
structs which represent the position of the substring
in the original document.cargo-bloat
.no_std
builds. To use without the standard library, disable the default features.<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.