Runs the test case.
Document doc;
NamedNodeMap entities;
DocumentType docType;
Node retval;
Element elem;
doc = (Document) load("hc_staff", true);
docType = doc.getDoctype();
if (
!(("text/html".equals(getContentType())))
) {
assertNotNull("docTypeNotNull", docType);
entities = docType.getEntities();
assertNotNull("entitiesNotNull", entities);
elem = doc.createElementNS("http://www.w3.org/1999/xhtml", "br");
try {
retval = entities.setNamedItemNS(elem);
fail("throw_HIER_OR_NO_MOD_ERR");
} catch (DOMException ex) {
switch (ex.code) {
case 3 :
break;
case 7 :
break;
default:
throw ex;
}
}
}