Here you can find the source of isMatchNodeName(Node node, String node_name)
public static boolean isMatchNodeName(Node node, String node_name)
//package com.java2s; //License from project: LGPL import org.w3c.dom.*; public class Main { public static boolean isMatchNodeName(Node node, String node_name) { if (node == null || node_name == null) return false; return node.getNodeName().equals(node_name); }//from w w w . jav a 2 s. c o m }