The use of XML

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 :slight_smile:

-Eikern