I have a situation where I have data in my database in Windows Explorer style. Where there can be n-number of Parent-Child relationships. A Parent can have 5 childs, out of those five, 2 may have more childs and so on ... How do I retrieve this data in ...

1. Either direct in XML format ... in that tree style ... so that I can easily parse through the xml and load in treeview.

2. Or if that is not possible, then normal style, but what logic should I use to load this data in a TreeView.

I am struggling with logic here ...