added xml methods