tags:

views:

67

answers:

2

In C#, I need to get

currentnode.parentnode.parentnode.parentnode.firstchild.lastchild.lastchild

I am using to generating MLM tree some of the label which represent individual node overload at the fourth level so I was trying to get that nodes and separate them.

I am new to XML, I hope my question is clear.

A: 

If you have the current node you want to work on, then XmlNode defines a ParentNode FirstChild, and LastNode property that you can use to do this see.

Andrew Cox
A: 

Consider using XQuery or XPath in order to perform queries on your XML tree. There's a nice tutorial here, showing all the common options.

ASk