Java XML NodeList isNodeListEmpty(final NodeList nodeList)

Here you can find the source of isNodeListEmpty(final NodeList nodeList)

Description

is Node List Empty

License

Open Source License

Declaration

public static boolean isNodeListEmpty(final NodeList nodeList) 

Method Source Code

//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*/
}

Related

  1. hasImageNodes(NodeList nodeList)
  2. indexOf(NodeList nodeList, String tagName, int startIdx)
  3. isEmpty(@Nullable final NodeList aNL)
  4. isEmpty(NodeList nl)
  5. isListEmpty(NodeList list)
  6. isNotEmpty(NodeList nodeList)
  7. isNullOrEmpty(NodeList nodeList)
  8. iterable(final NodeList list)
  9. iterable(NodeList nodeList)