Solved issue with XML output.