Java tutorial
//package com.java2s; import org.w3c.dom.NodeList; public class Main { public static boolean isEmpty(NodeList nodeList) { if (nodeList == null || nodeList.getLength() <= 0) { return true; } return false; } }