如何将XML用作完整的数据库 [英] How to Use XML as a complete database

查看:147
本文介绍了如何将XML用作完整的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在创建一个可能需要一些表的应用程序,在这些表上可能需要执行一些查询.我当时正在考虑不使用任何外部引擎(例如SQL Server或MYSQL)创建此文件,而我认为最好的方法是xml数据.所以,我的问题是

1)我可以在XML中执行简单sql查询的操作吗?
2)我需要做什么.有人建议使用数据表,将其导出到XML文件中,然后在退出时进行保存,对于加载,我们需要创建一个数据表并将数据从XMl加载到其中.是这样做的有效方法吗?
3)还有其他有效的方式可以保存数据.出于安全性考虑,我考虑了在保存后使用RSA加密xml文件并在加载时解密它们的方法.这样可以吗??

您可以通过[removed] @ gmail.com添加并ping我.

谢谢
Jashobanta

Hi All,

I am creating an application that may need some tables on which some queries might need to be executed. I was thinking of creating this without the use of any external engines like SQL server or MYSQL, and I think the best way would be xml data. So, my question is

1) can I perform the operations of simple sql queries in XML??
2) what do I need to do. Some people suggested to use data table, export it into XML files and save while exiting, and for loading, we need to create a data-table and load the data from XMl into it. Is it efficient way to do this??
3) is there any other efficient way in which I can save the data.For security, I thought of encrypting the xml files using RSA after saving and decrypting them while loading. Is this OK???

You can add and ping me at [removed]@gmail.com .

Thanks
Jashobanta

推荐答案

XML主要用于在应用程序之间交换数据.

如果您想使用XML作为数据库,请确保您的应用程序很小(例如个人通讯录之类),并且不建议将其用于海量数据.查看此CP文章,作者对事情进行了一些解释.
使用XML作为具有数据集的数据库 [
XML mainly for exchanging data between applications.

If you want use XML as database then make sure your application is small one(like personal contact book or something) & it''s not recommended for massive data. Check this CP article, the author explained little bit about things.
Using XML as Database with Dataset[^]


这篇关于如何将XML用作完整的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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