Expand description
A non-spec compliant xml parser that does not stop parsing when encountering errors.
§Examples
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());
}
Modules§
- tokens
- The different types returned by the parser.
Structs§
- FmtXml
Error - Formatted error message token.
- Parsed
Xml - Struct returned after calling XmlParser::parse().
- Settings
- Struct with settings that’s used during parsing.
- XmlParser
- The main parser struct.