Runs the test case.
Document doc;
DOMImplementation domImpl;
DocumentType newDocType;
String publicId = "http://www.w3.org/DOM/Test/dom2.dtd";
String systemId = "dom2.dtd";
String qualifiedName;
java.util.List qualifiedNames = new java.util.ArrayList();
qualifiedNames.add("{");
qualifiedNames.add("}");
qualifiedNames.add("'");
qualifiedNames.add("~");
qualifiedNames.add("`");
qualifiedNames.add("@");
qualifiedNames.add("#");
qualifiedNames.add("$");
qualifiedNames.add("%");
qualifiedNames.add("^");
qualifiedNames.add("&");
qualifiedNames.add("*");
qualifiedNames.add("(");
qualifiedNames.add(")");
doc = (Document) load("staffNS", false);
domImpl = doc.getImplementation();
for (int indexN10073 = 0; indexN10073 < qualifiedNames.size(); indexN10073++) {
qualifiedName = (String) qualifiedNames.get(indexN10073);
{
boolean success = false;
try {
newDocType = domImpl.createDocumentType(qualifiedName, publicId, systemId);
} catch (DOMException ex) {
success = (ex.code == DOMException.INVALID_CHARACTER_ERR);
}
assertTrue("domimplementationcreatedocumenttype04", success);
}
}