I have a page that contains a couple of layers of nested div tags. Within the the 8 or 9 of the divs are tables. How do I iterate through the divs and pick the specific divs that I want and then iterate through the cells in the table (one row) embedded in each of the divs? Here is a representative sample of the page that I want to iterate through.
<div id="TheHouseDiv" class="catbox_m">
<div class="Room1Div">
<table width="900" border="0">
<tbody>
<tr>
<td><a href="/blah/blah1.html">I don't care about this value</a></td>
<td><a href="/blah/blah2.html">I WANT THIS VALUE 1!</a></td>
<td><a href="/blah/blah3.html">I WANT THIS VALUE TOO 2!</a></td>
<td><a href="/blah/blah4.html">Another cell I don't want</a></td>
<td><a href="/blah/blah5.html">THIS CELL I WANT ALSO</a></td>
<tr>
</tbody>
</table>
<table width="900" border="0">
<tbody>
<tr>
<td><a href="/blah/blah1.html">Ignore this value in the second table</a></td>
<td><a href="/blah/blah2.html">I WANT THIS VALUE</a></td>
<td><a href="/blah/blah3.html">I WANT THIS VALUE TOO</a></td>
<td><a href="/blah/blah4.html">Ignore this content</a></td>
<td><a href="/blah/blah5.html">GET THIS CELL VALUE</a></td>
<tr>
</tbody>
</table>
</div>
<div class="Room2Div">
<table width="900" border="0">
<tbody>
<tr>
<td><a href="/blah/blah1.html">I don't care about this value</a></td>
<td><a href="/blah/blah2.html">I WANT THIS VALUE 1!</a></td>
<td><a href="/blah/blah3.html">I WANT THIS VALUE TOO 2!</a></td>
<td><a href="/blah/blah4.html">Another cell I don't want</a></td>
...
You get the idea. So there is one table within each div and multiple divs. There are actually between 8 and 10 divs. None of the tables or cells have IDs so I need to reference the positionally. However I don't want all of the cell nor all of the tables. I only want values from specific cells in each of the tables within each div although I want the same cells from every table. Would I iterate through this or just reference the specific cells I want and if so, how do I select them?