Java XML Node to Element isElement(Node node)

Here you can find the source of isElement(Node node)

Description

is Element

License

Apache License

Declaration

public static boolean isElement(Node node) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import org.w3c.dom.Node;

public class Main {
    public static boolean isElement(Node node) {
        short nodeType = node.getNodeType();
        if (Node.ELEMENT_NODE == nodeType || Node.DOCUMENT_NODE == nodeType) {
            return true;
        }//from w ww . j a  v a2s.  com
        return false;
    }
}

Related

  1. isElement(Node e)
  2. isElement(Node node)
  3. isElement(Node node)
  4. isElement(Node node)
  5. isElement(Node node)
  6. isElement(Node node, String name)
  7. isElementByTag(Node node, String tagName)
  8. isElementContent(Node node)
  9. isElementNamed(Node node, String name)