Expand description
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 Text
, CDataSection
, and Comment
nodes
but does limited entity processing or escaping.
Example
use xml_dom::parser::read_xml;
let dom = read_xml(r#"<?xml version="1.0"?><xml/>"#);
assert!(dom.is_ok());
Enums
Errors constructing a DOM from text.
Functions
Parse the provided string into a DOM structure; if the result is OK, the result returned
can be safely assumed to be a Document
node.
Parse the provided string into a DOM structure; if the result is OK, the result returned
can be safely assumed to be a Document
node.
Type Definitions
Result type for public function(s).