You use
PHP/
ASp to call the database and generate the
XML.
This allows you to...
1. save it on the server and load the file with
PHP/
ASP without needing to make a database call
2. send the
XML to the client and manipulate it with Javascript
...amongst other things