pub fn read(
xml: &str,
model: &Model,
root_type: Option<&str>,
) -> Result<Document, Error>Expand description
Reads an XML document. root_type names the type of the root element (a canonical URL or a
type name); without it, the type is the one whose root element name matches.