Here you can find the source of matchingLocalName(Node node, String requiredLocalName)
private static boolean matchingLocalName(Node node, String requiredLocalName)
//package com.java2s; //License from project: Apache License import org.w3c.dom.*; public class Main { private static boolean matchingLocalName(Node node, String requiredLocalName) { if (requiredLocalName == null) { return true; } else {// ww w . ja v a 2s . c om String localName = node.getLocalName(); return requiredLocalName.equals(localName); } } }