Merge XML Files from DataSets

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
 
I

Ignacio Machin ( .NET/ C# MVP )

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
 
F

Frank Uray

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);
 
H

Henning Bredel

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-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top