Java XML Node Value Check isValidNode(Node node, String name)

Here you can find the source of isValidNode(Node node, String name)

Description

is Valid Node

License

Apache License

Declaration

public static boolean isValidNode(Node node, String name) 

Method Source Code

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

import org.w3c.dom.Node;

public class Main {
    public static boolean isValidNode(Node node) {
        return !node.getNodeName().equals("#text");
    }/* w w w.  j  av  a 2  s .  co  m*/

    public static boolean isValidNode(Node node, String name) {
        return node.getNodeName().equals(name);
    }
}

Related

  1. isSynchronousInvoke(Node invoke)
  2. isText(final Node n)
  3. isText(Node node)
  4. isText(Node node)
  5. isText(Node node)
  6. isWhiteSpace(Node node)
  7. isWhitespace(Node node)
  8. isWhitespaceNode(Node n)
  9. isWhitespaceNode(Node t)