Here you can find the source of getLocalName(final Node node)
static String getLocalName(final Node node)
//package com.java2s; //License from project: Apache License import org.w3c.dom.Node; public class Main { static String getLocalName(final Node node) { final String result = node.getLocalName(); return result != null ? result : node.getNodeName(); }/*from w w w . j a v a 2 s .c o m*/ }