public static boolean isNotEmpty(final Node xmlNode,final String xPathString){
  NodeList nodeList=getNodeList(xmlNode,xPathString + "/child::node()[not(self::text())]");
  if ((nodeList != null) && (nodeList.getLength() > 0)) {
    return true;
  }
  return false;
}

public static boolean isNotEmpty ( final Node xmlNode , final String xPathString ) { NodeList nodeList = getNodeList ( xmlNode , xPathString + "/child::node()[not(self::text())]" ) ; if ( ( nodeList != null ) && ( nodeList . getLength ( ) > 0 ) ) { return true ; } return false ; }
returns true if the xpath query contains something
