title: Nokogiri: how to search for certain element, and output the full traverse?
body: <p>using nokogiri,</p>
  
  <p>i want to find <code>&lt;p class="main"&gt; Some text here...&lt;/p&gt;</code></p>
  
  <p>from an html document,</p>
  
  <p>and then output the location as below or something that shows the tree </p>
  
  <pre><code>html &gt; body &gt; div class = "body" &gt; p class= "main "
  </code></pre>