Java XML Node Value Check isText(Node node)

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

Description

is Text

License

Open Source License

Declaration

public static boolean isText(Node node) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import org.w3c.dom.Node;

public class Main {
    public static boolean isText(Node node) {
        return node.getNodeType() == Node.TEXT_NODE || node.getNodeType() == Node.CDATA_SECTION_NODE;
    }/*  w w  w . jav a  2  s .co  m*/
}

Related

  1. isSimpleValueProperty(Node node)
  2. isSubTagExist(Node node, String tagName)
  3. isSuppressJoinFailure(Node node)
  4. isSynchronousInvoke(Node invoke)
  5. isText(final Node n)
  6. isText(Node node)
  7. isText(Node node)
  8. isValidNode(Node node, String name)
  9. isWhiteSpace(Node node)