XML DOM manipulation for Rust.
```rust
let mut doc = Document::from_str("
let potato = root.queryselector(&doc, Selector::new("potato").unwrap()).unwrap(); potato.appendnew_element(&mut doc, ( "wow", [ ("easy", "true"), ("x", "200"), ], ));
let decl = Declaration { version: Some("1.1".tostring()), encoding: Some("utf-8".tostring()), standalone: None, } doc.set_declaration(Some(decl));
println!("{}", doc.tostringpretty());
/* Prints:
You can run this example with cargo run --example readme
, and see the examples/readme.rs
file.
This project is licensed under either of
at your option.