question: static String scanIdentifier ( IXMLReader reader ) throws IOException , XMLParseException { StringBuffer result = new StringBuffer ( ) ; for ( ; ; ) { char ch = reader . read ( ) ; if ( ( ch == '_' ) || ( ch == ':' ) || ( ch == '-' ) || ( ch == '.' ) || ( ( ch >= 'a' ) && ( ch <= 'z' ) ) || ( ( ch >= 'A' ) && ( ch <= 'Z' ) ) || ( ( ch >= '0' ) && ( ch <= '9' ) ) || ( ch > '~' ) ) { result . append ( ch ) ; } else { reader . unread ( ch ) ; break ; } } return result . toString ( ) ; }
target:  Retrieves an identifier from the data.