Without meaning to be rude to newmarket but the script above I wrote should be able to export the data in the MySQL database to a xml file*. If you want more help please ask as I can fix it up or customize it for you.
Jamhits
*(This script hasn't been tested and needs variables to be entered before it will work)*
|