fixing the XML output