added xml encoding