D
D
Danil2016-12-21 15:48:50
C++ / C#
Danil, 2016-12-21 15:48:50

There is a database in access, connected it to the application in visual studio, how to save data from tables in xml?

Hello. There is an app that displays the fields of tables with data from the access database. Connected through "Add new data source".
The data is taken from Novaya_BD.mdb. The question is how to make the table data stored in the xml file of the project? Suppose if we remove the file Novaya_BD.mdb, then the data would be taken from the backup copy of the xml file? Also, there was editing, adding and updating fields.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2016-12-21
@Rou1997

System.Xml.
You create XmlDocument, in a cycle pass on all lines DataTable/DataSet, add . elements in DOM XML, save to a file. Restoration is similar.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question