Code example for Document

Methods: createElementNS, getDoctype

0
     *  
     * @throws Throwable 
     *             Any uncaught exception causes test to fail 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies that setNamedItemNS throws DOMException.", 
        method = "setNamedItemNS", 
        args = {org.w3c.dom.Node.class}
    ) 
    public void testNotationsSetNamedItemNS() throws Throwable { 
        Document doc;
        NamedNodeMap notations;
        DocumentType docType;
 
        Element elem;
        doc = (Document) load("hc_staff", builder);
        docType = doc.getDoctype();
 
        if (!(("text/html".equals(getContentType())))) {
            assertNotNull("docTypeNotNull", docType);