simple-xml

Crates.iosimple-xml
lib.rssimple-xml
version0.1.10
sourcesrc
created_at2020-08-07 21:10:06.049371
updated_at2020-08-10 20:29:37.151606
descriptionA dead simple xml parser
homepage
repositoryhttps://github.com/ten3roberts/simple-xml
max_upload_size
id274121
size29,922
Freja Roberts (ten3roberts)

documentation

README

Simple XML

Simple xml is a small crate for reading, parsing and storing xml data

Usage

Example parsing:


let note =
    simple_xml::from_file("./examples/note.xml").expect("Failed to parse simple_xml");

let to = &note["to"][0];
let from = &note["from"][0];
let heading = &note.get_nodes("heading").expect("Missing heading")[0];
let body = &note["body"][0];
let lang = note
    .get_attribute("lang")
    .expect("Failed to get attribute lang");

More examples can be found in the docs and tests

Commit count: 22

cargo fmt