List of utility methods to do XML NodeList Convert
Set | convertNodelistToSet(NodeList xpathNodeSet) Method convertNodelistToSet if (xpathNodeSet == null) { return new HashSet<Node>(); int length = xpathNodeSet.getLength(); Set<Node> set = new HashSet<Node>(length); for (int i = 0; i < length; i++) { set.add(xpathNodeSet.item(i)); return set; |