// should not continue after exception; state may not be valid
// And then leaving out branch...
sw = getDTDValidatingWriter(strw, SIMPLE_DTD, nsAware, repairing);
sw.writeStartElement("root");
sw.writeCharacters(" "); // imitating indentation
sw.writeComment("comment");
try {
sw.writeEmptyElement("end");
fail(modeDesc+" Expected a validation exception when omitting non-optional <branch> element");
} catch (XMLValidationException vex) {