pub fn to_xml_with_header<T: Serialize>(x: &T) -> Result<String, Error>