Android XML Node Child Check hasTextContent(Node child)

Here you can find the source of hasTextContent(Node child)

Description

has Text Content

Declaration

public static boolean hasTextContent(Node child) 

Method Source Code

//package com.java2s;

import org.w3c.dom.Node;

public class Main {
    public static boolean hasTextContent(Node child) {
        return child.getNodeType() != Node.COMMENT_NODE
                && child.getNodeType() != Node.PROCESSING_INSTRUCTION_NODE;
    }/* w w  w . ja va2s  .c om*/
}

Related

  1. hasChild(Node node, String namespace, String name)
  2. hasChildElement(NodeList list)
  3. isDescendantOrSelf(Node ctx, Node descendantOrSelf)
  4. isInstance(Node node, String namespace, String name)