public static bool IsNameToken(string str) { if (str == null) { throw new NullReferenceException(); } return ValidateNames.IsNmtokenNoNamespaces(str); }