code: public static XmlParser.Node select(XmlParser.Node rootNode, String xpath) {
          XPath xp = XPath.parse(xpath);
          return xp.select(rootNode);
      }
docs: Helper method for compiling xpath and selecting a node in one method call.
  If the same xpath will be reused, it's more efficient to create an instance
  than to use this method.
  <br><br>
  Selects the first node starting from the rootNode that matches this xpath.
  Useful for selecting a subtree.  For example, if the xpath is "/nodeA/nodeB",
  and that path exists starting from rootNode, then "nodeB" would be returned.
  @param rootNode The node to start from
  @param xpath The xpath to select
  @return The selected node that matches the xpath