code: public static XPathUtils newXPath(final Document doc) {
          final XPathFactory xpfactory = XPathFactory.newInstance();
          final XPath xPath = xpfactory.newXPath();
          return new XPathUtils(xPath, doc);
      }
docs: Creates a new {@link XPathUtils} instance.
  
  @param doc The XML data.
  @return A new {@link XPathUtils} instance.