Updated parseXml and saveFileAs methods to correlate output xml file with input