roxml
The XmlReader is designed to read XML in an efficient, zero-copy way without DOM structures or other
intermediate representations. It has a lazy design, the navigation functions scan the source on demand.
It is NOT an implementation of a XML processor. Its intent is to support traversing XML formatted data to directly create your own representation.
It is aware of the basic XML structure: Prolog, Body (RootElement), Epilog, but does only basic input validation.
It supports both std and no_std environments (requires alloc).
Usage
extern crate roxml;
use *;
let xml = r#"<note priority="high">
<to>Alice</to>
<from>Bob</from>
<body>Don't forget to feed the cat.</body>
</note>"#;
let reader = parse;
let root = reader.root_element.expect;
assert_eq!;
assert_eq!;
for child in root.children
License
Licensed under either of
- Apache License, Version 2.0 LICENSE-APACHE or source
- MIT license LICENSE-MIT or source
at your option.
Contribution
Any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.