title: Do XPath on a Node with Java
body: <p>I have someNode and I'd like to do XPath on it like this:</p>
  
  <pre><code>XPath xpath = XPathFactory.newInstance().newXPath();
  XPathExpression expr = xpath.compile("//name");
  Object result = expr.evaluate(SOMETHING_ELSE, XPathConstants.NODE);
  </code></pre>
  
  <p>How can I turn someNode to SOMETHING_ELSE and do my XPath?</p>