List of utility methods to do XML NodeList
Stream | toStream(final NodeList nodeList) to Stream return new AbstractList<Node>() { @Override public int size() { return nodeList.getLength(); @Override public Node get(int index) { return nodeList.item(index); ... |
Stream | toStream(NodeList nodeList) to Stream return IntStream.range(0, nodeList.getLength()).mapToObj(nodeList::item);
|