The script now writes the .xml to output.xml in the same folder