Turning options into an xml string