Here you can find the source of isElementType(Node _node)
Parameter | Description |
---|---|
_node | node |
public static boolean isElementType(Node _node)
//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; } }