I have created an xml schema and an xml file from a datatable. I am now trying to read that data in which is working fine. I can access the data but the problem is that I want to know how many Tables there are in the xml file. For example the setup looks like this:

<table>
<row1>rowinfo</row1>
<row2>rowinfo</row2>
</table
<table>
<row1>rowinfoagain</row1>
<row2>rowinfoagain</row2>
</table>
I want to know how many "<table>" objects there are. Can anyone help?