Changed output to XML file