Solved

Need some help on doing XPath in ASP.NET.

Posted on 2011-02-17
2
326 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

757 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

22 Experts available now in Live!

Get 1:1 Help Now