Here you can find the source of getLocalName(Node el)
Parameter | Description |
---|---|
el | a parameter |
public static String getLocalName(Node el)
//package com.java2s; //License from project: Open Source License import java.util.StringTokenizer; import org.w3c.dom.Node; public class Main { /**/*ww w.j a v a2s .com*/ * get the name of an XML element, with the namespace prefix stripped off * @param el * @return */ public static String getLocalName(Node el) { String locName = ""; StringTokenizer st = new StringTokenizer(el.getNodeName(), ":"); while (st.hasMoreTokens()) locName = st.nextToken(); return locName; } }