If I've used LINQ to retrieve results from the database, is there a way that I can automagically get this to generate XML?
For example:
DataClasses1DataContext db = new DataClasses1DataContext(C_CONN_STRING);
var q = from stock in db.GetTable<Stock>()
where stock.Group == 1
select stock;
foreach(Stock s in q)
{
//automatically create XML document here?
}
Sorry if this is such a really basic question, any help appreciated