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开发者_如何学JAVA is , when I select a particular node from the treview, I should be able to display its attributes in a combo box. Please help.
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.
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.
精彩评论