pub fn from_bytes<T: DeserializeOwned>(
document: &[u8],
maximum_bytes: usize,
) -> Result<T, PhoneXmlError>Expand description
Parses bounded UTF-8, US-ASCII, or ISO-8859-1 XML using the encoding named in the declaration. The XML reader, rather than an ad-hoc byte scan, owns decoding, entity policy, and nesting validation.