void parseIgnoredSection() throws IOException {
  int depth=1;
  in.replace++;
  while (true) {
switch (ch) {
case '<':
      if ((ch=in.read()) == '!') {
        if ((ch=in.read()) == '[') {
          ch=in.read();
          depth++;
        }
      }
    break;
case ']':
  if ((ch=in.read()) == ']') {
    if ((ch=in.read()) == '>') {
      ch=in.read();
      if (--depth == 0) {
        in.replace--;
        return;
      }
    }
  }
break;
case -1:
error("eof");
in.replace--;
return;
default :
ch=in.read();
break;
}
}
}

void parseIgnoredSection ( ) throws IOException { int depth = 1 ; in . replace ++ ; while ( true ) { switch ( ch ) { case '<' : if ( ( ch = in . read ( ) ) == '!' ) { if ( ( ch = in . read ( ) ) == '[' ) { ch = in . read ( ) ; depth ++ ; } } break ; case ']' : if ( ( ch = in . read ( ) ) == ']' ) { if ( ( ch = in . read ( ) ) == '>' ) { ch = in . read ( ) ; if ( -- depth == 0 ) { in . replace -- ; return ; } } } break ; case - 1 : error ( "eof" ) ; in . replace -- ; return ; default : ch = in . read ( ) ; break ; } } }
parse an ignored section until ] ] > is encountered .
