Here you can find the source of getNode(String tagName, NodeList nodes)
public static Node getNode(String tagName, NodeList nodes)
//package com.java2s; import org.w3c.dom.Node; import org.w3c.dom.NodeList; public class Main { public static Node getNode(String tagName, NodeList nodes) { for (int x = 0; x < nodes.getLength(); x++) { Node node = nodes.item(x); if (node.getNodeName().equalsIgnoreCase(tagName)) { return node; }/*from w ww . j ava 2 s .co m*/ } return null; } }