pub fn check_xml(doc: &Doc) -> WriteReportExpand description
Report what writing XML would adjust, without producing output. Unlike
write_xml, this does not enforce the single-document-element shape
(mirrors Python’s check_xml, which is just _scan_xml(node, "$", rep)
with no root-shape guard of its own).