added xml api