Java Utililty Methods XML Node Local Name

List of utility methods to do XML Node Local Name

Description

The list of methods to do XML Node Local Name are organized into topic(s).

Method

NodegetNodeRecursive(Node node, String localName)
get Node Recursive
if ((node.getLocalName() != null) && (node.getLocalName().startsWith(localName))) {
    return node;
} else {
    NodeList nl = node.getChildNodes();
    if (nl == null) {
        return null;
    for (int a = 0; a < nl.getLength(); a++) {
...
booleanisA(Node e, String ns, String localname)
is A
if (e == null)
    return false;
return ns.equals(e.getNamespaceURI()) && e.getLocalName().equals(localname);
booleanmatchingLocalName(Node node, String requiredLocalName)
matching Local Name
if (requiredLocalName == null) {
    return true;
} else {
    String localName = node.getLocalName();
    return requiredLocalName.equals(localName);
booleanmatchingLocalName(Node node, String requiredLocalName)
matching Local Name
if (requiredLocalName == null) {
    return true;
} else {
    String localName = node.getLocalName();
    return requiredLocalName.equals(localName);