Merge XML Files from DataSets

  • Thread starter Thread starter Frank Uray
  • Start date Start date
F

Frank Uray

Hi all

I need to build a multi-user application
using one central xml-file.

Now, I am not sure if this is possible to
do, without building a database system ... :-)

The idea is:
The application is opening/reading the xml-file,
does some inserts/updates on the DataSet.
Because more than one users are using the same
xml-file, writing back the data should merge the xml-file.

Thanks for any comments !

Best regards
Frank Uray
 
Hi all

I need to build a multi-user application
using one central xml-file.

Now, I am not sure if this is possible to
do, without building a database system ... :-)

The idea is:
The application is opening/reading the xml-file,
does some inserts/updates on the DataSet.
Because more than one users are using the same
xml-file, writing back the data should merge the xml-file.

Thanks for any comments !

Best regards
Frank Uray

Hi,

you need to use a DB, download the SQL Express from MSDN
 
I have found a solution:

Bind XmlDataDocument to DataSet
XmlDataDocumentMessages = new
System.Xml.XmlDataDocument(clsVariables.static_DataSetMessages);

After DataSet is changed just:
XmlDataDocumentUsers.Save(clsVariables.static_DataSetUsersSetting);
 
Frank said:
I have found a solution:

Bind XmlDataDocument to DataSet
XmlDataDocumentMessages = new
System.Xml.XmlDataDocument(clsVariables.static_DataSetMessages);

After DataSet is changed just:
XmlDataDocumentUsers.Save(clsVariables.static_DataSetUsersSetting);

You definetely should look into the ideas and the
reasons why using a database. For your reasons
there is no way using a file!

regards

Henning


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoyG7MACgkQEJ9janMfFUGOBgCfTt+96nHtrCpI9yIiperiv1Dg
fkcAn0463LP83yZ5Ef7n0gXpNupd5qCw
=Iysb
-----END PGP SIGNATURE-----
 
Back
Top