Hi,
I have a windows vb.net form with a treeview control on it. I have built it so that it reads from xml doc, and populate all nodes. I can then insert, delete, and edit nodes. Once I am done, I save the xml file again.
Just one problem, I need to add a unique attribute to each node that is created, and also add that unique value to another attribute of the same node. For example: when adding the node:
<element id=”myelement” uniqueid=”need unique id here” link=”linkpage.aspx?uid= need same unique id here”>
I have tried using an xslt file with generate-id() function, but I would prefer another way, let’s say when I create the xml node to add, I just need to insert a value to an attribute that will be unique across the entire document.
As I am using a treeview control, I thought I could use the index property of the treenode, but it is only relative to its parent nodes.
Is there another property that I can use, to uniquely mark my nodes, or any other suggestions?