一千萬個為什麽

搜索

C#.net中的XML數據庫

I am developing a wpf client program for some websites. It uses xml database. I am new to XML. Would someone please explain how to create,append(Most important),edit,read&encrypt xml file. It is a big question,i know . But, it is urgent.Have to complete the work ASAP. Searched in the internet, not getting correct info.

最佳答案

您應該認真考慮在應用程序中使用DataSet,並通過 DataSet,ReadXml 。完成更新後,請使用 DataSet編寫更改.WriteXml

但是你也應該認真考慮不使用XML作為數據庫。

Here's an article on CodeProject that discusses using xml as a database:
Xml Database Demo

我知道你在C#上標記了這個問題但不幸的是,演示應用程序是用VB.NET編寫的。

轉載註明原文: C#.net中的XML數據庫