xml output working