working on xml output