Checks that "content" string is valid NMTOKEN value. If invalid a Datatype validation exception is thrown.paramcontent the string value that needs to be validatedparamcontext the validation contextthrowsInvalidDatatypeException if the content is invalid according to the rules for the validatorsseeInvalidDatatypeValueException if (!XMLChar.isValidNmtoken(content)) { throw new InvalidDatatypeValueException("NMTOKENInvalid", new Object[]{content}); }
if (!XMLChar.isValidNmtoken(content)) { throw new InvalidDatatypeValueException("NMTOKENInvalid", new Object[]{content}); }