Java XML Has Child hasChildren(Element e)

Here you can find the source of hasChildren(Element e)

Description

has Children

License

Open Source License

Declaration

public static boolean hasChildren(Element e) 

Method Source Code

//package com.java2s;
// it under the terms of the GNU Affero General Public License as

import org.w3c.dom.Element;

public class Main {
    public static boolean hasChildren(Element e) {
        if (e == null)
            return false;
        return e.getFirstChild() != null;
    }//w  w w. ja va 2  s.c  o  m
}

Related

  1. hasChildNode(Node parentNode, String nodeName)
  2. hasChildNodeByName(Node element, CharSequence nodeName, boolean caseSensitive)
  3. hasChildNodes(Element element, String name)
  4. hasChildNS(Node parent, String ns, String name)
  5. hasChildOfType(final Element e, final String name)
  6. hasChildren(Element element)
  7. hasChildren(Element element)
  8. hasChildren(Element element, String childName)
  9. hasChildren(final Element el)