Here you can find the source of getAttributeStringValue(String attribute, NamedNodeMap namedNodeMap)
public static String getAttributeStringValue(String attribute, NamedNodeMap namedNodeMap)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; public class Main { public static String getAttributeStringValue(String attribute, NamedNodeMap namedNodeMap) { Node node = namedNodeMap.getNamedItem(attribute); if (node != null) { return node.getTextContent(); }/*from w w w. j av a 2 s . c o m*/ return null; } }