I\'m tring to use SQLCMD to export some data to an XML file, I have created a script that formats the data perfectly in, see example:
XML Query - testrd.sql