fixed minor bug in GenerateXMLFile.cs