I have an application I am building in Visual Express which contains a treeview that populates from XML. The XML looks something like this
The Treeview is coded to look like the following
- John's House
- Jane's House
i.e. the treeview ends at the <House> node and displays the name of the <Name> node.
I want the AfterSelect sub to display the other leaf nodes in that <House> in various text fields.
At the moment what I am trying to do is translate the fullpath attribute of the selected node into the XML path, but I am sure there must be a better way to do this.
How would you do it?