/** * A idChar is a letter, digit or '-'. * * @param c * @return */ public static boolean isIdChar(char c) { return isLetter(c) || isDigit(c) || c == '-'; }
/** * A NameChar (defined in the XML Schema 1.0) can be a letter, a digit, '.', * '-', '_', ':', a CombiningChar or Extender. * * @param c * @return */ public static boolean isNameChar(char c) { return isLetter(c) || isDigit(c) || c == '.' || c == '-' || c == '_' || c == ':'; }