Here you can find the source of getNodeValue(Node node)
public static Node getNodeValue(Node node)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.Node; public class Main { public static String VALUE = "rng:value"; public static Node getNodeValue(Node node) { for (int i = 0; i < node.getChildNodes().getLength(); i++) { Node n = node.getChildNodes().item(i); if (n.getNodeName().equals(VALUE)) { return n; }/*from w w w . j a v a 2s. c om*/ } return null; } }