XML security in world wide web
Im a newbie in XML and i have some questions
- Can XML be used in stead of normal database (store data in a tuple and column) in website?
- XML is built to share information easier (from my understanding) such as can share cross platform and in d开发者_运维问答ifferent language used so Is it secure to store secure data in XML?
thank you so much
- You could use it as a (very simple) datastore.
If you are using .NET, System.Data.Dataset has good importing and exporting from xml. And then there's linq to xml which is just great :) - It's not secure. You could encrypt the text before you write to the xml file.... but if you want something secure, you don't want to use an xml file.
1) XML is not a database but a markup language originally intended to markup documents. The language has the ability to describe the contents of its elements but that must be interpreted by some other language. It is used in a db sort of way to describe the contents of a file but it won't retrieve any data without an outside application.
2) XML is cross platform since it's just text. This is one big advantage in that it works everywhere with everything.
"Can XML be used in stead of normal database"
Sure
"store data in a tuple and column"
Sort of. It's hierarchical data rather than relational.
"Is it secure to store secure data in XML"
XML is a file format for a text document. Security is a separate layer outside of the XML document.
精彩评论