added xml parsing functionality