newbie - how do you make an xml database file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I wish to use an xml database file to feed data to a c# aspx webform but i
don't know how to start. after that the xml database file would have to be
edited by a diffent C# aspx webform. If you could help with code thanks.
 
Jonathan,

You can read an xml file directly into a dataset. Then after you have
manipulated the data you can push the data it back into xml. I might have
misunderstood what you are asking. If I have please reply to this post.

I hope this helps.
--------------------------

DataSet ds = new DataSet();
ds.ReadXml(@"..\..\Customers.xsd");

//do something with the data

StreamWriter sw = new StreamWriter(@"..\mydata.xml");
sw.Write(ds.GetXml().ToString());
sw.Flush();
sw.Close();
 
Back
Top