oa_gateway_agra

Function xml_root_local_name

Source
pub fn xml_root_local_name(xml: &str) -> Option<String>
Expand description

Local name of an XML document element, or None if there is no element.

A declaration, comment, or DOCTYPE ahead of the root is stepped over rather than treated as the element, since producers emit <?xml …?> as a matter of course and treating that as the element would make wrapper_kind answer “not a wrapper” for perfectly ordinary input and silently disable unwrapping.