initial version of working XML output