private void parseMisc ( ) throws Exception { while ( true ) { skipWhitespace ( ) ; if ( tryRead ( startDelimPI ) ) { parsePI ( ) ; } else if ( tryRead ( startDelimComment ) ) { parseComment ( ) ; } else { return ; } } }
Parse miscellaneous markup outside the document element and DOCTYPE declaration .