[][src]Module sxd_document::parser

Converts XML strings into a DOM structure

Example

use sxd_document::parser;
let xml = r#"<?xml version="1.0"?>
<!-- Awesome data incoming -->
<data awesome="true">
  <datum>Science</datum>
  <datum><![CDATA[Literature]]></datum>
  <datum>Math &gt; others</datum>
</data>"#;
let doc = parser::parse(xml).expect("Failed to parse");

Structs

Error

Traits

XmlParseExt

Common reusable XML parsing methods

Functions

parse

Parses a string into a DOM. On failure, the location of the parsing failure and all possible failures will be returned.