Over a million developers have joined DZone.

XPath: Convert Nodeset To Nodelist

·
// Convert nodeset to nodelist


          XPath xpath = XPathFactory.newInstance().newXPath();
          NodeList nodes = (NodeList) xpath.evaluate("//Rule", rootNode, XPathConstants.NODESET);

Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}