attributes = {‘mmlCm:type’ => type, ‘mmlCm:tableId’ => tableId } attributes = checkDigit if checkDigit attributes = checkDigitSchema if checkDigitSchema xml.mmlCm :Id, value, attributes