Code example for NamedNodeMap

Methods: getNamedItemNS, removeNamedItemNS

0
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Doesn't verify DOMException.", 
        method = "removeNamedItemNS", 
        args = {java.lang.String.class, java.lang.String.class}
    ) 
    public void testRemoveNamedItemNS3() throws Throwable { 
        Document doc;
        NamedNodeMap attributes;
        Node element;
        Attr attribute;
 
        Attr attribute1;
        Attr attribute2;
        String nodeName;
        doc = (Document) load("staffNS", builder);
        element = doc.createElementNS("http://www.w3.org/DOM/Test", "root");
        attribute1 = doc
                .createAttributeNS("http://www.w3.org/DOM/L1", "L1:att");
        ((Element) /* Node */element).setAttributeNodeNS(attribute1);
        attribute2 = doc
                .createAttributeNS("http://www.w3.org/DOM/L2", "L2:att");