Fix to_xml command