List of utility methods to do XML Node Local Name
Node | getNodeRecursive(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++) { ... |
boolean | isA(Node e, String ns, String localname) is A if (e == null) return false; return ns.equals(e.getNamespaceURI()) && e.getLocalName().equals(localname); |
boolean | matchingLocalName(Node node, String requiredLocalName) matching Local Name if (requiredLocalName == null) { return true; } else { String localName = node.getLocalName(); return requiredLocalName.equals(localName); |
boolean | matchingLocalName(Node node, String requiredLocalName) matching Local Name if (requiredLocalName == null) { return true; } else { String localName = node.getLocalName(); return requiredLocalName.equals(localName); |