Is there a way to populate a treeview control from an xml file but not have the tags as nodes themselves?



I have to confess that I don't know very much about xml so that could very well be my problem but here's the issue. I would like to create nodes in a treeview control from an xml file but have my data be all the nodes, no tags.



Example:
<QA>
<server>QASever1</server>
<Databases>
<Database>Mercury</Database>
<Database>Venus</Database>
<Database>Earth</Database>
<Database>Mars</Database>
<Database>Jupiter</Database>
<Database>Saturn</Database>
<Database>Neptune</Database>
<Database>Pluto</Database>
</Databases>
</QA>


This gives me something like:



QA
---server
---QAServer1
---Database
---Mercury
---Database
---Venus


etc...


Is there anyway to ignore the tags and make it more to the point?



QA
---QAServer1
---Mercury
---Venus


etc...


Am I going about this the wrong way entirely? Yes, I'm a noob.


No comments:

Post a Comment