Java Utililty Methods XML Node to Element

List of utility methods to do XML Node to Element

Description

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

Method

booleanisElementNamed(Node node, String name)
is Element Named
if (node == null) {
    return false;
if (node.getNodeType() != Node.ELEMENT_NODE) {
    return false;
return getElementName(node).equals(name);
booleanisElementNode(final Node target)
Tests to see if target's getNodeType() method returns Node.ELEMENT_NODE.
return Node.ELEMENT_NODE == target.getNodeType();
booleanisElementNode(Node n)
is Element Node
return (n.getNodeType() == Node.ELEMENT_NODE);
booleanisElementNode(Node n)
Check whether a given XML Node is an element node.
return n != null && n.getNodeType() == Node.ELEMENT_NODE;
booleanisElementNode(Node target)
is Element Node
return Node.ELEMENT_NODE == target.getNodeType();
booleanisElementNode(Node target)
Verifies if the given target node is an element.
return Node.ELEMENT_NODE == target.getNodeType();