Here you can find the source of getSimpleNodeValue(Node node)
public static String getSimpleNodeValue(Node node)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.Document; import org.w3c.dom.Node; public class Main { public static String getSimpleNodeValue(Document doc, String nodeName) { return getSimpleNodeValue(doc.getElementsByTagName(nodeName).item(0)); }//from w w w. j av a 2 s .c o m public static String getSimpleNodeValue(Node node) { return node.getChildNodes().item(0).getNodeValue(); } }