Runs the test case.
Document doc;
Document newDoc;
DocumentType docType = null;
DOMImplementation domImpl;
Attr attribute;
String namespaceURI = "http://www.w3.org/XML/1998 /namespace";
String qualifiedName = "xml:root";
doc = (Document) load("staffNS", false);
domImpl = doc.getImplementation();
newDoc = domImpl.createDocument("http://www.w3.org/DOM/Test", "dom:doc", docType);
{
boolean success = false;
try {
attribute = newDoc.createAttributeNS(namespaceURI, qualifiedName);
} catch (DOMException ex) {
success = (ex.code == DOMException.NAMESPACE_ERR);
}
assertTrue("documentcreateattributeNS06", success);
}