void () { while (!myBuilder.eof() && myBuilder.getTokenType() != XML_TAG_END && !isAnotherDeclStart(myBuilder.getTokenType()) ) { if (myBuilder.getTokenType() == XML_COMMENT_START) parseComment(); else addToken(); } if(myBuilder.getTokenType() == XML_TAG_END) addToken(); }