Here you can find the source of isElement(Node node)
Parameter | Description |
---|---|
node | to test |
public static boolean isElement(Node node)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.Node; public class Main { /**/*from w w w .j av a2 s. c om*/ * Returns whether the specified node is an element * * @param node to test * @return true if the specified node is an element; false otherwise */ public static boolean isElement(Node node) { return node.getNodeType() == Node.ELEMENT_NODE; } }