How to find the XElement corresponding to SelectedNode in treeview?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi All,
Have loaded an XDocument into a windows forms treeview. Now, I would like to find the XElement corresponding to SelectedNode in treeview? Would like to accomplish this completely using Linq to Xml but I have not found examples of how to navigate the XElement
tree. Maybe Im missing something but it seems that I have to use XPath.
Thanks in advance.
Regards.

View the full article
 
Back
Top