Move to a new method to create a new XML file