Hello All I have a Hashtable containing key and data in the following format.
Key Data
--------------------
X1 ---- > D1
X2 ---- > D1
X3 ---- > D1
X4 ---- > D2
X5 ---- > D2
X6 ---- > D3
My requirement is to get a tree structure from the same data
i.e
D1
|------- X1
|--------X2
|--------X3
D2
|------- X4
|--------X5
D3
|------- X6
Can anyone help out with the logic ? Thanks in advance