added xml validation