GenerateXML.pl working