title: Search by XPath under a given element
body: <p>The only way I know in PHP to perform an XPath query on the DOM is <a href="http://php.net/manual/fr/class.domxpath.php" rel="nofollow noreferrer">DOMXPath</a>, which only works on a <code>DOMDocument</code>:</p>
  <pre><code>public __construct ( DOMDocument $doc )
  </code></pre>
  <p><strong>Is there a similar mechanism to search relatively to a <code>DOMElement</code>?</strong></p>
  <p>The problem being, I need to search an abritrary XPath (that I have no control over) relatively to a <code>DOMElement</code>.</p>
  <p>I've tried to do:</p>
  <pre><code>$domElement-&gt;getNodePath() . '/' . $xPath;
  </code></pre>
  <p>But if the XPath contains a <code>|</code> (<em>or</em> character), this approach doesn't work.</p>