Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 426 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 426 Bytes

trashy-xml

A non-spec compliant xml parser that does not stop parsing when encountering errors.

Example

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());
}