title: Finding Top Level Tags With BeautifulSoup
body: <p>I have some BeautifulSoup I'm looking at. In this case, my tree looks like this:</p>
  
  <pre><code>soup = "&lt;table class="myTable"&gt;&lt;tr&gt;...&lt;/tr&gt;&lt;/table&gt;"
  </code></pre>
  
  <p>When I call the following:</p>
  
  <pre><code>soup.findAll(attrs={'class':'myTable'})
  </code></pre>
  
  <p>I don't have anything returned, when I would expect that top level tag to be returned. But if the tag I'm searching for isn't in the top level, like the following:</p>
  
  <pre><code>soup = "&lt;body&gt;&lt;table class="myTable"&gt;&lt;tr&gt;...&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;"
  </code></pre>
  
  <p>Then I do find the table. I assume I'm missing something obvious. If I'm not, is there a way to have find everything including the top level tag?</p>