how to convert Database Hierarchical Data to XML using ASP.net 3.5 and LINQ
Posted
by mahdiahmadirad
on Stack Overflow
See other posts from Stack Overflow
or by mahdiahmadirad
Published on 2010-05-13T06:25:55Z
Indexed on
2010/05/13
10:14 UTC
Read the original article
Hit count: 337
hello guys!
i have a table with hierarchical structure. like this:
and table data shown here:
this strategy gives me the ability to have unbounded categories and sub-categories.
i use ASP.net 3.5 SP1 and LINQ and MSSQL Server2005. How to convert it to XML? I can Do it with Dataset Object and ".GetXML()" method. but how to implement it with LINQtoSQL or LINQtoXML??? or if there is another simpler way to perform that? what is your suggestion? the best way? I searched the web but found nothing for .net 3.5 featuers.
© Stack Overflow or respective owner