Created a sitemap using the modules views and views data
You'll need to edit the views-data-export-xml-header.tpl.php that corresponds to the view your wanting to edit. To find this out, click on Advanced, Theme, and then Information. You're looking for a line like this:


  Alternative style: views-data-export-xml-header.tpl.php, views-data-export-xml-header--test.tpl.php, views-data-export-xml-header--views-data-export.tpl.php, views-data-export-xml-header--test--views-data-export.tpl.php, views-data-export-xml-header--default.tpl.php, views-data-export-xml-header--default.tpl.php, views-data-export-xml-header--views-data-export-1.tpl.php, views-data-export-xml-header--test--views-data-export-1.tpl.php


Pick a filename and make the changes. Note that if you're looking to wrap the results in additional tags, you'll need to override both the header and the footer files.

You'd change:

// Short tags act bad below in the html so we print it here.
print '&lt;?xml version="1.0" encoding="UTF-8" ?&gt;';
?&gt;

&lt;&lt;?php print $root_node; ?&gt;&gt;


To also include any other information:

// Short tags act bad below in the html so we print it here.
print '&lt;?xml version="1.0" encoding="UTF-8" ?&gt;';
?&gt;

&lt;&lt;?php print $root_node; ?&gt;&gt;
&lt;header-data&gt;
&lt;/header-data&gt;