First, you need download and install SqlToTxt.
SqlToTxt is a tool to export Sql Server data to xml file.

Using SqlToTxt you can export Sql Server data to xml file easily and fast.
Convenient, powerful
Export Sql Server data to xml - 3 steps
1. Click "Export Table" button.
then show the Export Single Table form.
2. Select a table, config unload options.
You can export data to text, csv, excel, xml, html, Excel.
3. Click unload buuton, Show unload progress.
“......this SqlToTxt tool something highly useful. It lets you export the content of the SQL database tables directly to TXT text format......CSV, XML, HTML and XLS (from MS Excel) formats. ”
