void () { IElementType tokenType = myBuilder.getTokenType(); if (tokenType == XML_MARKUP_START) { addToken(); } while (true) { tokenType = myBuilder.getTokenType(); if (tokenType == XML_ELEMENT_DECL_START) { parseElementDecl(); } else if (tokenType == XML_ATTLIST_DECL_START) { parseAttlistDecl(); } else if (tokenType == XML_ENTITY_DECL_START) { parseEntityDecl(); } else if (tokenType == XML_NOTATION_DECL_START) { parseNotationDecl(); } else if (tokenType == XML_ENTITY_REF_TOKEN) { parseEntityRef(); } else if (tokenType == XML_COMMENT_START) { parseComment(); } else if (parseConditionalSection()) { } else { break; } } if (tokenType == XML_MARKUP_END) { addToken(); } }