xmlem

XML DOM manipulation for Rust.

Quickstart

```rust let mut doc = Document::from_str("").unwrap(); let root = doc.root();

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.

Projects using xmlem

License

This project is licensed under either of

at your option.