Skip to main content

extract_xml_declaration_from_raw

Function extract_xml_declaration_from_raw 

Source
pub fn extract_xml_declaration_from_raw(xml_content: &str) -> Option<XmlElement>
Expand description

Extract XML declaration from raw XML (quickxml_to_serde drops it). Returns a Value object like {“@version”: “1.0”, “@encoding”: “UTF-8”, “@standalone”: “yes”} for use in build_xml_string. None if no declaration found.