added xml writing of item table