Link to home
Start Free TrialLog in
Avatar of SamJolly
SamJollyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Need some help on doing XPath in ASP.NET.

Hi,

I have got some XML in an object ie

Doc.Xml

with

<table>
<rc/>
<rc/>
<rc/>
<rc/>
<rc/>
<rc/>
</table

I want to apply some xpath to it to find out how many child nodes there are:

i.e xpath = count(//Table/*)

The relevant code would return 6 as answer.

What would the asp.net code look like to do the above please.

Thanks,

Sam
ASKER CERTIFIED SOLUTION
Avatar of SamJolly
SamJolly
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SamJolly

ASKER

Sorted myself