Get options and save a XML file