Code example for NamedNodeMap

Methods: getNamedItemNS

0
            assertTrue("throw_NOT_FOUND_ERR", success);
        } 
    } 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies that removeNamedItemNS method throws DOMException with NOT_FOUND_ERR code.", 
        method = "removeNamedItemNS", 
        args = {java.lang.String.class, java.lang.String.class}
    ) 
    public void testRemoveNamedItemNS8() throws Throwable { 
        Document doc;
        NamedNodeMap attributes;
        Element element;
 
        NodeList elementList;
        doc = (Document) load("staffNS", builder);
        elementList = doc.getElementsByTagNameNS("http://www.nist.gov",
                "address"); 
        element = (Element) elementList.item(1);
        attributes = element.getAttributes();
        element.removeAttributeNS("http://www.nist.gov", "domestic");