XML to treeview based on ParentId

ayoub

New Member
I have an XML like this:\[code\]<table name="tblcats"><row> <Id>1741</Id> <Industry>Oil & Gas - Integrated</Industry> <ParentId>1691</ParentId> </row> <row> <Id>1690</Id> <Industry>Commodities</Industry> <ParentId>1691</ParentId> </row> <row> <Id>1691</Id> <Industry>Capital Goods</Industry> <ParentId>0</ParentId> </row></table>\[/code\]I want to create a Treeview from this XML so that table is parent node and then nodes ParentId 0 is second parent and then child nodes with Parent Id greater than 0Like this:+Table +Capital Goods Commodities Oil & Gas - IntegratedHow can I do this? Please suggestRegards,Asif Hameed
 
Back
Top