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"), ("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.

Projects using xmlem

License

This project is licensed under either of

at your option.