http://www.perlmonks.org?node_id=175552


in reply to How do I dump a database table into XML format?

If you are using MySQL try this from the command line.
mysqldump --xml database_name table_name > out_file.xml
-Silent11