Provides a basic parser from text to DOM using the quick-xml crate.
The parsing capability of quick-xml is limited in some ways, it does not support DTD handling other
than returning the entire DTD content as a string; therefore entities, notations, or entity
references are not constructed in the DOM. It does parse
but does limited entity processing or escaping.
use xml_dom::parser::read_xml; let dom = read_xml(r#"<?xml version="1.0"?><xml/>"#); assert!(dom.is_ok());
Errors constructing a DOM from text.
Parse the provided string into a DOM structure; if the result is OK, the result returned
can be safely assumed to be a
Result type for public function(s).