protected boolean isValidName (XMLTokenizer tokenizer, String name) { return name != null && name.length () > 0 && charValidator.isNameStartChar (name.charAt (0)); }
if (!v.isNameStartChar (entity.charAt (1))) throw new IllegalArgumentException ("Entity name doesn't begin with a valid character: '"+entity+"'");
/** Read an XML name */ protected void parseName (String objectName) { int startPos = pos; if (pos < source.length () && charValidator.isNameStartChar (source.charAt (pos))) { pos ++; while (pos < source.length () && charValidator.isNameChar (source.charAt (pos))) pos ++; } if (pos == startPos) { throw new XMLParseException ("Expected valid XML name for "+objectName+lookAheadForErrorMessage ("but found", startPos, 20), source, startPos); } }