Code example for Document

Methods: createAttributeNS, getElementsByTagName

0
//            try { 
//                genElement.setAttributeNodeNS(newAttr); 
//            } catch (DOMException ex) { 
//                success = (ex.code == DOMException.NO_MODIFICATION_ALLOWED_ERR); 
//            } 
//            assertTrue("throw_NO_MODIFICATION_ALLOWED_ERR", success); 
//        } 
//    } 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Doesn't verify DOMException.", 
        method = "setAttributeNodeNS", 
        args = {org.w3c.dom.Attr.class}
    ) 
    public void testSetAttributeNode3() throws Throwable { 
        String namespaceURI = "http://www.newattr.com";
        String qualifiedName = "emp:newAttr";
        Document doc;
        NodeList elementList;
        Node testAddr;
        Attr newAttr;