开发者

populate a combobox with attributes of a selected xml node using c#

开发者 https://www.devze.com 2022-12-30 10:56 出处:网络
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 t

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消