// non-empty but not same
StringWriter strw = new StringWriter();
XMLStreamWriter2 sw = getDTDValidatingWriter(strw, FIXED_DTD_STR, nsAware, repairing);
sw.writeStartElement("root");
try {
sw.writeAttribute("fixAttr", "otherValue");
fail(modeDesc+" Expected a validation exception when trying to add a #FIXED attribute with 'wrong' value");
} catch (XMLValidationException vex) {
// expected...
}
// Should not close, since stream is invalid now...