Runs the test case.
Document doc;
NamedNodeMap attributes;
NodeList elementList;
Element element;
Attr attr;
Node newNode;
doc = (Document) load("staffNS", true);
elementList = doc.getElementsByTagNameNS("*", "address");
element = (Element) elementList.item(0);
attributes = element.getAttributes();
attr = (Attr) attributes.getNamedItemNS("http://www.usa.com", "domestic");
element = (Element) elementList.item(1);
attributes = element.getAttributes();
{
boolean success = false;
try {
newNode = attributes.setNamedItemNS(attr);
} catch (DOMException ex) {
success = (ex.code == DOMException.INUSE_ATTRIBUTE_ERR);
}
assertTrue("namednodemapsetnameditemns08", success);
}