我如何使用xml文件作为后端(数据库) [英] how i can use xml file as backend(database)

查看:350
本文介绍了我如何使用xml文件作为后端(数据库)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个服务器空间用于网站但不是sql服务器空间所以我想存储和检索使用xml文件的数据。

任何人都可以给我解决方案来存储注册详细信息和登录检查表单。



提前感谢!!!!!!!! :)

i have a server space for website but not sql server space so i want to store and retrieve data from using xml file.
can any one give me solution to store registration detail and login check form.

thanks in advance!!!!!!!! :)

推荐答案

有关更多详细信息,请参阅以下Codeproject链接:

将XML用作数据集的数据库 [ ^ ]
Refer the below Codeproject Link for more details:
Using XML as Database with Dataset[^]


是,ReadXML to dataset并使用该数据集处理所有内容



Yes, ReadXML to dataset and process everything with that dataset

DataSet ds = new DataSet();
ds.ReadXml("<xml filename="" with="" location="">");





如果你在数据层(3层架构)中这样做,即使你将应用程序升级到将来有任何数据库或任何其他数据源,它也会有所帮助。



If you do this way in Data layer(3 layered architecture), it will be helpful even when you upgrade your application to have any database or any other data source in future.


这篇关于我如何使用xml文件作为后端(数据库)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆