Jump to content

Can any one explain why xml is used instead of a database?


tallberg

Recommended Posts

Do you know what a database is, and do you know what XML is? I suggest you look those up first.

 

edit: i forgot to mention, if you know what they mean, then the answer should be obvious. databases can store much more information while keeping it just as easy to access.

Link to comment
Share on other sites

There are many methods for storing data i.e text files, databases, spreadsheets, xml, full text indexes, etc

The method used for storing data depends on the type of application and the functionality required. If you look into XML, its number one feature is that it is platform independent i.e. If you have many applications that are written on many different platforms or even if you are making your data open to the outside world the best way to share your data is via XML.

You will see many websites that share data such as twitter, facebook, etc. When you make a request to one of these systems the data is usually returned in XML. Your application can then parse the XML and display the information on screen.

 

I think your assumption that XML is used instead of a database is incorrect. The system may still run from a relational database, however it may have an API available where you can query the system and the results are returned in XML format.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.