// Let's try omitting the end element, first...
XMLStreamWriter2 sw = getDTDValidatingWriter(strw, SIMPLE_NS_DTD, true, repairing);
// prefix, local name, uri (for elems)
try {
sw.writeStartElement(NS_PREFIX2, "root", NS_URI);
fail(modeDesc+" Expected a validation exception when passing wrong (unexpected) ns for element");
} catch (XMLValidationException vex) {
// expected...
}
// should not continue after exception; state may not be valid