added xml parsing