?
Solved

Need some help on doing XPath in ASP.NET.

Posted on 2011-02-17
2
Medium Priority
?
339 Views
Last Modified: 2013-11-18
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
0
Comment
Question by:SamJolly
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 

Accepted Solution

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

Author Closing Comment

by:SamJolly
ID: 34919140
Sorted myself
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

770 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