Code example for NamedNodeMap

Methods: getNamedItemNS

0
        domesticAttr = (Attr) attributes.getNamedItemNS("http://www.usa.com",
                "domestic"); 
        attrName = domesticAttr.getNodeName();
        assertEquals("attrName", "dmstc:domestic", attrName);
    } 
    @TestTargetNew( 
        level = TestLevel.PARTIAL, 
        notes = "Doesn't verify DOMException.", 
        method = "getNamedItemNS", 
        args = {java.lang.String.class, java.lang.String.class}
    ) 
    public void testGetNamedItemNS2() throws Throwable { 
        String namespaceURI = "http://www.usa.com";
        String localName = "domest";
        Document doc;
        NodeList elementList;
        Node testEmployee;
        NamedNodeMap attributes;
        Attr newAttr;
        doc = (Document) load("staffNS", builder);
        elementList = doc.getElementsByTagName("address");