Conversion of itab into XML puts an extra character at begin of file
<p>I am using the following code to save data in an internal table as an xml file.
But an extra '#' character gets appended to the file.
If i remove this extra '#' the browser is able to read the xml.</p>

<pre><code>REPORT ZGAURAV1.
types: begin of struct,
   col1 type i,
   col2(5),
  end of struct.

  data: it type STANDARD TABLE OF struct.
  data: wa type struct.
  wa-COL1 = 1.
  wa-COL2 = 'abc'.
  APPEND wa to it.
  wa-COL1 = 2.
  wa-COL2 = 'def'.
  APPEND wa to it.

    data: xml_out TYPE string.

call TRANSFORMATION id
source output = it[]
RESULT XML xml_out.

data: xmltab type STANDARD TABLE OF string.
append xml_out to xmltab
.
CALL FUNCTION 'DOWNLOAD'
EXPORTING
  filename = 'C:\USERS\GAURAV\DESKTOP\TESTING.XML'
  filetype = 'ASC'
TABLES
  data_tab = xmltab
</code></pre>

<p>The XML file that gets created is</p>

<pre><code>#&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"&gt;&lt;asx:values&gt;&lt;OUTPUT&gt;&lt;item&gt;&lt;COL1&gt;1&lt;/COL1&gt;&lt;COL2&gt;abc&lt;/COL2&gt;&lt;/item&gt;&lt;item&gt;&lt;COL1&gt;2&lt;/COL1&gt;&lt;COL2&gt;def&lt;/COL2&gt;&lt;/item&gt;&lt;/OUTPUT&gt;&lt;/asx:values&gt;&lt;/asx:abap&gt;
</code></pre>

<p><strong>EDIT:</strong></p>

<p>I tried using replacement parameter in GUI_DOWNLOAD as suggested by @Suncatcher. But now there is an extra space in the beginning of the file because of which the browser is unable to read the xml.How does a space in the beginning makes the browser unable to read the xml?I created another xml and added spaces but the browser was able to read it.
The created xml is</p>

<pre><code> &lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"&gt;&lt;asx:values&gt;&lt;OUTPUT&gt;&lt;item&gt;&lt;COL1&gt;1&lt;/COL1&gt;&lt;COL2&gt;abc&lt;/COL2&gt;&lt;/item&gt;&lt;item&gt;&lt;COL1&gt;2&lt;/COL1&gt;&lt;COL2&gt;def&lt;/COL2&gt;&lt;/item&gt;&lt;/OUTPUT&gt;&lt;/asx:values&gt;&lt;/asx:abap&gt;
</code></pre>

<p>If i remove the extra space,it works fine.</p>