| Crates.io | trashy-xml |
| lib.rs | trashy-xml |
| version | 0.11.0 |
| created_at | 2020-01-08 01:15:46.152623+00 |
| updated_at | 2021-04-21 21:58:00.571756+00 |
| description | Xml parser that does not stop parsing when encountering errors. |
| homepage | |
| repository | https://github.com/Stromberg90/trashy-xml |
| max_upload_size | |
| id | 196458 |
| size | 61,770 |
A non-spec compliant xml parser that does not stop parsing when encountering errors.
use trashy_xml::XmlParser;
// Gets each open element matching "this_element"
// then prints the debug representation of its attributes.
let parsed = XmlParser::str("<this_element attribute=\"value\" />").parse();
for token in parsed.elements_from_name("this_element") {
dbg!(token.attributes());
}