title: It is possible to get the XPath of a SimpleXML element?
body: <p>After I find a special element, I want to get  its XPath. Is there any possibility to get the XPath of an SimpleXML element? Something like:</p>
  
  <pre><code>$xPathString = $element-&gt;getXpath();
  </code></pre>
  
  <p>I need the XPath in order to pass it to the 'click' method of a Selenium test case.</p>