} catch (XMLValidationException vex) { }
sw.close();
// Then proc. instr.
sw = getDTDValidatingWriter(strw, dtdStr, nsAware, repairing);
sw.writeStartElement("root");
try {
sw.writeProcessingInstruction("target", "data");
fail(modeDesc+" Expected a validation exception when trying to add processing instruction into EMPTY content model");
} catch (XMLValidationException vex) { }
sw.close();