Does anyone know how I can use the .getElementsByTagName to only receive
parent tags. I am only concerned with the outside TD tags and I need to
capture information from a TD tag that is at a specific position but the
table within a table throws off the count of my TD tags. For example how to
I get all of the TD tags in the following table except the ones that are
within the inner table.
<table width="100%" border = "1" cellspacing="1" cellpadding="0" border="0"
class="MainTable">
<tr class="tableoncell">
<td>Sample Data</td>
<td align="center">
<table border="1" cellpadding="1" cellspacing="1">
<tr>
<td>Embedded Child Table</td>
<td>Test Data</td>
</tr>
</table>
</td>
<td>
Table Text
</td>
<td>
1
</td>
</tr>
</table>
I see that IHTMLElement2 has a property that called canHaveChildren but it
seems to be read only. Any suggestions or help would be greatly
appreciated.
Thanks,
Curtis