Function dxr::serialize_xml

source ·
pub fn serialize_xml<T>(value: &T) -> Result<String, DeError>
where T: Serialize,
Expand description

Custom function for serializing values as XML.

This function uses a custom Serializer that expands empty XML elements (for example, <value><string></string></value> for an empty string value) instead of using self-closing XML tags, which are not accepted by all XML-RPC implementations.

This should be a drop-in replacement for quick_xml::se::to_string.