When would I use XML instead of SQL? [closed]

2020-01-27 09:42发布

I've been working on database-driven web applications for a few years now and recently took on a project involving a CMS that is XML-capable. This has led me to think about the usage of XML/XSLT in general and in what situations it would be more useful than the approach I've always used, which is storing all of my data in a (My)SQL database and then using PHP/Python/etc. to work with it on the web as needed.

There's obviously something I'm not "getting" here.. could anyone give me examples of applications where storing the data in XML files instead of in a database would be preferable?

标签: sql xml
13条回答
可以哭但决不认输i
2楼-- · 2020-01-27 10:28

I would go if I have limited mysql databases on my host, then I would see the opportunity for using XML as a datastore.

查看更多
登录 后发表回答