pub fn parse(xml: &str) -> Result<Package, Error>
Parses a string into a DOM. On failure, the location of the parsing failure and all possible failures will be returned.