pub fn serialize<T: XmlWrite>( value: &T, fragment: bool, ) -> Result<String, Error>
Serialize a value to XML string. If fragment is true, the XML declaration is omitted.
fragment