ralphtrent
Programmer
Hi
I have an xml doc set up like this
I was successfull in reading the file and create a treeview from the xml doc. Now what I need to do is, when the user selects one of the treeview options (value of att1), I will need to reread the xml file to get the value of another attribute (att2) to tell me what to show. I am hoping that i do not need to reread the file line by line again. Is there a way around that. XPath does not seem to help me due to the way I have the xml doc set up. So I need to know how I need to do this. The alternate to all this would be to put a associate a value with the treeview display, but I not sure if that can be done, can it? (sort of like the DisplayMember and ValueMember of a comboBox)
Thanks,
RT
I have an xml doc set up like this
Code:
<root>
<category name='name'>
<element att1='value' att2='value' att3='value' />
</category>
<category name='name2'>
<element att1='value' att2='value' att3='value' />
</category>
</root>
Thanks,
RT