added xml output.