Implemented XML output.