Code example for NamedNodeMap

Methods: getNamedItemNS, removeNamedItemNS

0
        ((Element) /* Node */element).setAttributeNodeNS(attribute1);
        attribute2 = doc
                .createAttributeNS("http://www.w3.org/DOM/L2", "L2:att");
        ((Element) /* Node */element).setAttributeNodeNS(attribute2);
        attributes = element.getAttributes();
        attribute = (Attr) attributes.removeNamedItemNS(
                "http://www.w3.org/DOM/L1", "att"); 
        attribute = (Attr) attributes.getNamedItemNS(
                "http://www.w3.org/DOM/L2", "att"); 
        nodeName = attribute.getNodeName();
        assertEquals("namednodemapremovenameditemns02", "L2:att", nodeName);
    } 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Doesn't verify DOMException.", 
        method = "removeNamedItemNS", 
        args = {java.lang.String.class, java.lang.String.class}
    ) 
    public void _testRemoveNamedItemNS4() throws Throwable { 
        Document doc;
        NamedNodeMap attributes;