code: public static List<Element> convertToElementList(org.w3c.dom.NodeList _nodeList) {
          List<org.w3c.dom.Element> elemList = new ArrayList<>();
          for (int i = 0; i < _nodeList.getLength(); i++) {
              Element elem = (org.w3c.dom.Element) _nodeList.item(i);
              elemList.add(elem);
          }
          return elemList;
      }
docs: Convert a {@link NodeList} to a Java {@link List} of {@link Element}s.
  @param _nodeList collection of nodes
  @return list of elements