title: Nokogiri: Finding all tags in a direct path, not including arbitrary levels of nesting
body: <p>Say I have an html document like:</p>
  
  <pre><code>&lt;div id='findMe'&gt;
    &lt;table&gt;
      &lt;tr&gt;
        &lt;td&gt;
          &lt;p&gt;
            &lt;a href="bad"&gt;bad&lt;/a&gt;
          &lt;/p&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
    &lt;p&gt;
      This is some text and this is a &lt;a href="good"&gt;link&lt;/a&gt;
    &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to capture all links instead the div #findMe, inside paragraphs tags, but not inside table or any other tags.  So, I want the one labeled "good", but not the one labeled "bad".  I'm trying:</p>
  
  <pre><code>Nokogiri::HTML(html).css('#findMe p a')
  </code></pre>
  
  <p>but that's capturing both links.  I also tried a more explicit xpath:</p>
  
  <pre><code>Nokogiri::HTML(html).css('#findMe').xpath('//p/a')
  </code></pre>
  
  <p>But that's doing the same thing.  How can I tell Nokogiri to only search a specific path down the tree?</p>