pub fn abx_to_xml(data: &[u8]) -> Result<String>Expand description
Converts an ABX document to an XML string.
Shorthand for AbxParser::new followed by AbxParser::to_xml.
§Errors
Returns an error if the input is truncated or malformed (unknown token, invalid interned-string index, invalid UTF-8).
§Examples
let xml = android_abx::abx_to_xml(data)?;
assert!(xml.starts_with(r#"<?xml version="1.0" encoding="UTF-8"?><pkg "#));