Runs the test case.
Document doc;
Element element;
NodeList elementList;
Attr attribute;
doc = (Document) load("staffNS", true);
elementList = doc.getElementsByTagName("employee");
element = (Element) elementList.item(0);
attribute = element.getAttributeNode("xmlns");
{
boolean success = false;
try {
attribute.setPrefix("xml");
} catch (DOMException ex) {
success = (ex.code == DOMException.NAMESPACE_ERR);
}
assertTrue("throw_NAMESPACE_ERR", success);
}