question: public static boolean isXMLName ( String name ) { if ( name . length ( ) > 0 && ! isNameStartChar ( name . charAt ( 0 ) ) ) { return false ; } for ( int i = 1 ; i < name . length ( ) ; i ++ ) { if ( ! isNameChar ( name . charAt ( i ) ) ) { return false ; } } return true ; }
target:  Simple check for valid XMLNames. Within ASCII range<br> ":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6]<br> are accepted, above all characters (which is not entirely  correct according to the XML Spec.