@Deprecated static public boolean isXMLID(String name){
  int ln=name.length();
  for (int i=0; i < ln; i++) {
    char c=name.charAt(i);
    if (i == 0 && (c == '-' || c == '.' || Character.isDigit(c))) {
      return false;
    }
    if (!Character.isLetterOrDigit(c) && c != '_' && c != '-' && c != '.') {
      if (c == ':') {
        if (i + 1 < ln && name.charAt(i + 1) == ':') {
          return false;
        }
      }
 else {
        return false;
      }
    }
  }
  return true;
}

@ Deprecated static public boolean isXMLID ( String name ) { int ln = name . length ( ) ; for ( int i = 0 ; i < ln ; i ++ ) { char c = name . charAt ( i ) ; if ( i == 0 && ( c == '-' || c == '.' || Character . isDigit ( c ) ) ) { return false ; } if ( ! Character . isLetterOrDigit ( c ) && c != '_' && c != '-' && c != '.' ) { if ( c == ':' ) { if ( i + 1 < ln && name . charAt ( i + 1 ) == ':' ) { return false ; } } else { return false ; } } } return true ; }
used internally by the xml dom wrapper to check if the subvariable name is just an element name , or a more complex xpath expression .
