// Oh, and finally, using non-ns DTD:
sw = getDTDValidatingWriter(strw, SIMPLE_DTD, true, repairing);
// prefix, local name, uri (for elems)
try {
sw.writeEmptyElement(NS_PREFIX, NS_URI, "root");
fail(modeDesc+" Expected a validation exception when passing wrong (unexpected) ns for element");
} catch (XMLValidationException vex) {
// expected...
}
}