Java XML Node Value Check isText(Node node)

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

Description

is Text

License

Apache License

Declaration

private static boolean isText(Node node) 

Method Source Code


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

import org.w3c.dom.*;

public class Main {
    private static boolean isText(Node node) {
        int ntype = node.getNodeType();
        return ntype == Node.TEXT_NODE || ntype == Node.CDATA_SECTION_NODE;
    }//from   ww w.  j  a v  a2  s .c o  m
}

Related

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