xml_serialize_with_decl

Function xml_serialize_with_decl 

Source
pub fn xml_serialize_with_decl<T>(obj: T) -> String
where T: XmlSerialize,
Expand description

The entry for serializing. T should have declared the root by #[xmlserde(root=b"")] to tell the serializer the tag name of the root. This function will add the header needed for a XML file.