Need some help on doing XPath in ASP.NET.

Posted on 2011-02-17
Last Modified: 2013-11-18

I have got some XML in an object ie




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 code look like to do the above please.


Question by:SamJolly
  • 2

Accepted Solution

SamJolly earned 0 total points
ID: 34919135
Sorted.... thanks

Author Closing Comment

ID: 34919140
Sorted myself

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
microsoft access - xml 10 58
Create html table using xsl 8 28
Where do I learn ES6? 3 49
Formatting issues in XSL FO 3 30
Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now