implemented XML output