|
-
Nov 17th, 2008, 05:13 PM
#1
Thread Starter
Addicted Member
xml xpath help needed!
I have an xml structure as follows ("cant change this")
<root>
<children>
<child>
<name>name1</name>
<children>
<name>namea</name>
<name>nameb</name>
</children>
</child>
<child>
<name>name2</name>
<children>
<name>namec</name>
<name>named</name>
</children>
</child>
</children>
</root>
I want to use xpath in order to select the main child names i.e name1 and name2 only
How do I go about doing this as .SelectNodes(//root//children//child//name) will return 6 results and not 2.
Last edited by eakin; Nov 17th, 2008 at 05:24 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|