public class DomUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getLocalName(org.w3c.dom.Node node)
Returns the local part of the name of the given node, if it is an attribute or an element, or returns null for other nodes.
|
public static java.lang.String getLocalName(org.w3c.dom.Node node)
Node.getLocalName()
should be used in all cases, since it handles the case of DOM Level 1 nodes for which getLocalName() == null and the local name is actually getNodeName().