Added xml declaration to XML output