G
GTi
I have a result from webservice query:
XmlDocument doc = new XmlDocument();
XmlNode newSet = doc.ImportNode( [xmlnode from a WebService query] );
doc.DocumentElement.AppendChild(newSet);
I have the same database on my computer.
The problem is that this database don't have any primary keys.
Is there anyway I can load local database into a dataset and the
webservice into a dataset
and compare it and save the new changed dataset back to my local
computer ?
DataSet ds1 = new DataSet();
DataSet ds2 = new DataSet();
ds1 = [load dataset from local computer]
ds2 = doc.????? [get the xml to a DataSet]
ds1.Merge(ds2);
Save changes to local database.
Question Summary:
1) How to load a XmlDocument into a dataset
2) Is it possible to check any changes in this two dataset?
XmlDocument doc = new XmlDocument();
XmlNode newSet = doc.ImportNode( [xmlnode from a WebService query] );
doc.DocumentElement.AppendChild(newSet);
I have the same database on my computer.
The problem is that this database don't have any primary keys.
Is there anyway I can load local database into a dataset and the
webservice into a dataset
and compare it and save the new changed dataset back to my local
computer ?
DataSet ds1 = new DataSet();
DataSet ds2 = new DataSet();
ds1 = [load dataset from local computer]
ds2 = doc.????? [get the xml to a DataSet]
ds1.Merge(ds2);
Save changes to local database.
Question Summary:
1) How to load a XmlDocument into a dataset
2) Is it possible to check any changes in this two dataset?