Code example for NamedNodeMap

Methods: getNamedItem

0
NamedNodeMap map = n.getAttributes();
        if (map == null) {
            return null; 
        } 
        Node snode = map.getNamedItem(name);
        if (snode == null) {
            return null; 
        } 
        return snode.getNodeValue();
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java