public static boolean isXMLNameNS(String name){
  if (name.length() > 0 && (!isNameStartChar(name.charAt(0)) || name.charAt(0) == ':')) {
    return false;
  }
  for (int i=1; i < name.length(); i++) {
    if (!isNameChar(name.charAt(i)) || name.charAt(i) == ':') {
      return false;
    }
  }
  return true;
}

public static boolean isXMLNameNS ( String name ) { if ( name . length ( ) > 0 && ( ! isNameStartChar ( name . charAt ( 0 ) ) || name . charAt ( 0 ) == ':' ) ) { return false ; } for ( int i = 1 ; i < name . length ( ) ; i ++ ) { if ( ! isNameChar ( name . charAt ( i ) ) || name . charAt ( i ) == ':' ) { return false ; } } return true ; }
checks if the value is a legal " unqualified " xml name , as defined in the xml namespaces proposed recommendation . these are xml names , except that they must not contain a colon .
