xml-rs
An XML 1.0 document parser implementation for Rust.
Usage
let text = r#"<?xml?><can><beans kind="fava">Cool Beans</beans><sauce></sauce></can>"#;
let xml = parse.expect;
assert_eq!;
assert_eq!;
assert_eq!;
See the documentation for more usage instructions.
Limitations
This library is not 1.0 yet, and might be missing some features (I don't know which ones). Needs a once-over with the specification in hand.
Specifically missing (for now) is support for:
- Spans for errors
- CDATA sections
- Namespaces
- Numeric character references
- '&', '<' and '>'
- Reading PIs (currently ignored)
- Reading comments (currently ignored)
- XML version & encoding
License
This project is licensed under the AGPL. See license.txt for more information.