finish xml output format