Here you can find the source of isElement(Node node)
Node
is non-null and is an XML Element.
Parameter | Description |
---|---|
node | the <code>Node</code> to check |
Node
is non-null and is an XML element
public static boolean isElement(Node node)
//package com.java2s; import org.w3c.dom.Node; public class Main { /**/*www. j av a 2s . c o m*/ * Determines if the given <code>Node</code> is non-null and is an XML Element. * * @param node the <code>Node</code> to check * @return true if the <code>Node</code> is non-null and is an XML element */ public static boolean isElement(Node node) { return (node != null && node.getNodeType() == Node.ELEMENT_NODE); } }