added xml output of tasks for api