tags:

views:

79

answers:

2

Im using c#.net windows form application. I have a xml file. I have loaded the node names of that xml file into a treeview. Now my task is , when I select a particular node from the treview, I should be able to display its attributes in a combo box. Please help.

A: 

When populating each XML node in the treeview, store the actual XPATH as a tag of that treeview node. On click, pick up the tag value, query the XmlDocument object and display your attributes.

Raj
A: 

Or maybe saeed is lazy to create it by himself.

@Raj - you don't have to store XPATH as a tag, you can store the node itself there.

Karel Frajtak
@Karel - Indeed, thanks.
Raj