Java XML Node Value Check isElementType(Node _node)

Here you can find the source of isElementType(Node _node)

Description

Shortcut for checking if given node is of type Element .

License

Open Source License

Parameter

Parameter Description
_node node

Return

true if , false otherwise

Declaration

public static boolean isElementType(Node _node) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import org.w3c.dom.Element;

import org.w3c.dom.Node;

public class Main {
    /**/*w  w  w. ja va2 s .com*/
     * Shortcut for checking if given node is of type {@link Element}.
     *
     * @param _node node
     * @return true if {@link Element}, false otherwise
     */
    public static boolean isElementType(Node _node) {
        return _node instanceof Element;
    }
}

Related

  1. isCommentNode(Node node)
  2. isContainerElement(Node node)
  3. isCreateInstanceSet(Node node)
  4. isElementNodeExist(Node root, String nodeString)
  5. isElementNodeOfType(final Node n, final String type)
  6. isEmpty(Node node)
  7. isEmptyTag(Node p_node)
  8. isEqual(Node a, Node b)
  9. isExpanded(Node node)