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"), ("a-null", "\0"), ], ));
let decl = Declaration::v11(); doc.setdeclaration(Some(decl)); doc.set_doctype(Some("not-html"));
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.