public String parseDTDMarkup() throws IOException {
  StringBuilder strBuff=new StringBuilder();
  ch=readCh();
  while (true) {
switch (ch) {
case '>':
      ch=readCh();
    return strBuff.toString();
case -1:
  error("invalid.markup");
return strBuff.toString();
case '\n':
ln++;
ch=readCh();
lfCount++;
break;
case '"':
ch=readCh();
break;
case '\r':
ln++;
if ((ch=readCh()) == '\n') {
ch=readCh();
crlfCount++;
}
 else {
crCount++;
}
break;
default :
strBuff.append((char)(ch & 0xFF));
ch=readCh();
break;
}
}
}

public String parseDTDMarkup ( ) throws IOException { StringBuilder strBuff = new StringBuilder ( ) ; ch = readCh ( ) ; while ( true ) { switch ( ch ) { case '>' : ch = readCh ( ) ; return strBuff . toString ( ) ; case - 1 : error ( "invalid.markup" ) ; return strBuff . toString ( ) ; case '\n' : ln ++ ; ch = readCh ( ) ; lfCount ++ ; break ; case '"' : ch = readCh ( ) ; break ; case '\r' : ln ++ ; if ( ( ch = readCh ( ) ) == '\n' ) { ch = readCh ( ) ; crlfCount ++ ; } else { crCount ++ ; } break ; default : strBuff . append ( ( char ) ( ch & 0xFF ) ) ; ch = readCh ( ) ; break ; } } }
parses th document declaration type markup declaration . currently ignores it .
