Main Page | Report this Page
 
.NET DotNet Forum Index  »  ADO .NET Forum  »  XML Database Update Question...
Page 1 of 1    

XML Database Update Question...

Author Message
Mikep...
Posted: Sat Oct 24, 2009 10:14 pm
Guest
I have an XML DataSet that I access as follows:

DataSet XMLDataSet;
XMLDataSet = new DataSet;
XMLDataSet.ReadXml("XMLDataBase.xsd", XmlReadMode.ReadSchema);

// maybe make some changes or add new rows
// then when shutting down....

if (XMLDataSet.HasChanges())
{
//XMLDataSet.AcceptChanges(); // memory only
XMLDataSet.WriteXml("XMLDataBase.xsd", XmlWriteMode.WriteSchema);
}


What do I need to do in order to update the DataSet so that any and all
changes are
committed? The way it is, whenever I read the DataSet later, it always has
changes
whether I AcceptChanges or not.

It appears that the DataRowState never gets reset even when the DataSet is
written out by The WriteXml call.

TIA -

Mikep
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Sun Nov 22, 2009 2:42 am