xml-tools 0.1.0
XML escape and unescape plus a small tolerant parser to a tree
Install
cargo add xml-tools --registry rupm
In Ruststudio: Packages, search for xml-tools, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.
Versions
- 0.1.0 2026-11-22
README
# xml-tools
XML escape and unescape plus a small tolerant parser to a tree
Add it with `rupm add xml-tools` (or `cargo add xml-tools --registry rupm`).
```rust
let doc = xml_tools::parse("<a id=\"1\"><b>hi</b></a>")?;
assert_eq!(doc.attr("id"), Some("1"));
assert_eq!(doc.child("b").map(|b| b.text()), Some("hi".to_string()));
```