Runs the test case.
Document doc;
Document newDoc;
DocumentType docType = null;
DOMImplementation domImpl;
Element element;
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 {
element = newDoc.createElementNS(namespaceURI, qualifiedName);
} catch (DOMException ex) {
success = (ex.code == DOMException.NAMESPACE_ERR);
}
assertTrue("documentcreateelementNS06", success);
}