Skip to main content

to_xml_root

Function to_xml_root 

Source
pub fn to_xml_root<T: Serialize>(
    root: &str,
    value: &T,
) -> Result<String, DeError>
Expand description

Serialize a serde value as <Root xmlns="...">...</Root> with a leading XML declaration.