Runs the test case.
Document doc;
Element rootNode;
Node newChild;
Node appendedChild;
doc = (Document) load("hc_staff", true);
rootNode = doc.getDocumentElement();
newChild = doc.createAttribute("newAttribute");
{
boolean success = false;
try {
appendedChild = rootNode.appendChild(newChild);
} catch (DOMException ex) {
success = (ex.code == DOMException.HIERARCHY_REQUEST_ERR);
}
assertTrue("throw_HIERARCHY_REQUEST_ERR", success);
}