i want to store data in xml.....
how to store dat in xml in asp.net using c#.....
i want that if xml file is not creted the it create the xml file and store the data what i want...
and i want to retrive stored data from xml file in gridview.........
Xml
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

CrishRank #1,487 · 1.1K reputationPosted May 28, 2010, 4:02 AM EDT
try below link for your solution
http://www.aspfree.com/c/a/ASP.NET/Developing-ASPNET-Applications-Using-XML-as-Data-Storage/
bind gridview using below code
// Creates a DataSet and loads it with an Xml Content DataSet aDataSet = new DataSet(); aDataSet.ReadXml(new StringReader(aXmlDoc.OuterXml)); // Bind the DataSet to the grid view GridView gv = (GridView)sender; gv.DataSource = aDataSet; gv.DataBind();that solved your problem!
Sam HobbsRank #107 · 20.5K reputationPosted May 28, 2010, 4:16 AM EDT