Try again: writeToXmlFile