we often work with dataset and after populate dataset we can use getxml() function to have the data in xml format. so i like to know is there any similar technique exist for linq to generate xml from linq query. please guide. thanks
IEnumerable<Books> books = Books.GetBooks();
IEnumerable<Salesdetails> sales =
Salesdetails.getsalesdetails();
var booktitles = from b in books
join s in sales
on b.ID equals s.ID
select new { Name = b.Title, Pages = s.pages };
foreach (var title in booktitles)
lblbooks.Text += String.Format("{0} <br />", title);