pub fn parse(source: &str) -> Result<Document, JsError>
Parse an XML document.
Returns a JsError carrying the position and reason if the input is not well-formed.
JsError