Here you can find the source of isNodeListEmpty(final NodeList nodeList)
public static boolean isNodeListEmpty(final NodeList nodeList)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.NodeList; public class Main { public static boolean isNodeListEmpty(final NodeList nodeList) { return nodeList == null || nodeList.getLength() == 0; }/*from w ww.j av a 2 s . c o m*/ }