Hi,
I'm parsing an Xml file and every thing is working fine.
I want to get number of specific element in xml data.
Say I have an Xml file having data of books
<Books>
<Book>
<Name>ABC</Name>
<Author>xyz</Author>
<Cost>$20</Cost>
</Book>
<Book>
<Name>ABC2</Name>
<Author>xyz2</Author>
<Cost>$20</Cost>
</Book>
<Book>
<Name>ABC3</Name>
<Author>xyz3</Author>
<Cost>$20</Cost>
</Book>
</Books>
I want the count of Book element, without parsing whole document.
Please help.
I'm parsing an Xml file and every thing is working fine.
I want to get number of specific element in xml data.
Say I have an Xml file having data of books
<Books>
<Book>
<Name>ABC</Name>
<Author>xyz</Author>
<Cost>$20</Cost>
</Book>
<Book>
<Name>ABC2</Name>
<Author>xyz2</Author>
<Cost>$20</Cost>
</Book>
<Book>
<Name>ABC3</Name>
<Author>xyz3</Author>
<Cost>$20</Cost>
</Book>
</Books>
I want the count of Book element, without parsing whole document.
Please help.