code: public static boolean validateTableRows(final Element table) {
          assert table != null;
          assert table.getNodeName().equals("table") || table.getNodeName().equals("informaltable");
  
          final NodeList tgroups = table.getElementsByTagName("tgroup");
          for (int i = 0; i < tgroups.getLength(); i++) {
              final Element tgroup = (Element) tgroups.item(i);
              if (!validateTableGroup(tgroup)) return false;
          }
  
          return true;
      }
docs: Check to ensure that a table isn't missing any entries in its rows.
  
  @param table The DOM table node to be checked.
  @return True if the table has the required number of entries, otherwise false.