code: public static XPathUtils newXPath(final String str) throws SAXException,
              IOException {
          final XPathFactory xpfactory = XPathFactory.newInstance();
          final XPath xPath = xpfactory.newXPath();
          final Document doc = XmlUtils.toDoc(str);
          return new XPathUtils(xPath, doc);
      }
docs: Creates a new {@link XPathUtils} instance.
  
  @param str The string with XML data.
  @return A new {@link XPathUtils} instance.
  @throws SAXException If there's a SAX error in the XML.
  @throws IOException If there's an IO error reading the stream.