Here you can find the source of getTagValueWithoutNamespace(Node n)
Parameter | Description |
---|---|
n | the n |
public static String getTagValueWithoutNamespace(Node n)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.Node; public class Main { /**/* w ww . ja v a 2s . c om*/ * Gets the tag value without namespace. * * @param n * the n * @return the tag value without namespace */ public static String getTagValueWithoutNamespace(Node n) { if (n != null) { String tag = n.getNodeName(); return tag.substring(tag.indexOf(":") + 1, tag.length()); } return null; } }