Adds the conversion to xml