pub fn validate_xml_input(
bytes: &[u8],
policy: XmlSafetyPolicy,
) -> Result<(), XmlSafetyError>Expand description
Validates one complete XML document without constructing a DOM.
ยงErrors
Returns a safety error when policy is invalid or the document is malformed, exceeds a limit,
uses forbidden DTD/entity features, or contains invalid encoding.