FK developed dict_to_xml method.