title: i need the full dom node path of element
body: <p>i need to search the html document for <code>&lt;p class="content"&gt; text here &lt;/p&gt;</code></p>
  
  <p>and then output the full node path (CSS or XPATH)</p>
  
  <p>for isntance</p>
  
  <pre><code>html &gt; body &gt; div class ="something" &gt; table &gt; tr &gt; p class="content"
  </code></pre>
  
  <p>i tried with nokogiri but it doesn't handle the class and other attributes well..</p>
  
  <p>i need a parser that does this without problem.</p>