static char processCharLiteral(String entity) throws IOException, XMLParseException {
  if (entity.charAt(2) == 'x') {
    entity=entity.substring(3,entity.length() - 1);
    return (char)Integer.parseInt(entity,16);
  }
 else {
    entity=entity.substring(2,entity.length() - 1);
    return (char)Integer.parseInt(entity,10);
  }
}

static char processCharLiteral ( String entity ) throws IOException , XMLParseException { if ( entity . charAt ( 2 ) == 'x' ) { entity = entity . substring ( 3 , entity . length ( ) - 1 ) ; return ( char ) Integer . parseInt ( entity , 16 ) ; } else { entity = entity . substring ( 2 , entity . length ( ) - 1 ) ; return ( char ) Integer . parseInt ( entity , 10 ) ; } }
processes a character literal .
