# The use of XML

**URL:** <https://forum.kirupa.com/t/the-use-of-xml/229115>\
**Category:** programming\
**Created:** [June 14, 2007, 7:35am UTC](https://forum.kirupa.com/t/the-use-of-xml/229115 "2007-06-14T07:35:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eikern](https://avatars.discourse-cdn.com/v4/letter/e/90db22/32.png) [@Eikern](https://forum.kirupa.com/u/Eikern)\
**Post date:** [June 14, 2007, 7:35am UTC](https://forum.kirupa.com/t/the-use-of-xml/229115/1 "2007-06-14T07:35:27Z")

</div>

I’ve wondered about this for a while, and I thought I could ask about it there.  
What’s the use of XML and XSL(T)?

I just read about Dreamweavers new Spry-features which gets it’s info from XML-files. And I’ve also read that W3C encouraged the use XML/XSL(T).

Now what I do is use a PHP-script to get all the data from a MySQL database.  
So is it better to get the data from the DB throught a PHP-script which writes it as XML and then use another script to output it to the user?

I guess XML is useful for storing static data, or for writing directly to a file, and not to a SQL server. Or to use it to fead RSS. But are there any other advantages when using this technology at all?

Thanks for any answers 🙂

-Eikern
