I have a form that labs use to submit sample data. The data
needs to be stored as an XML file. I have that working. But the XML
file needs meta data in it, too. This is what i have for code right
now, but it's not working, it's trying to parse the XML.

Can someone suggest a means to fix this?

<CFXML VARIABLE="SampleResultXml">
<cfoutput>
<SAMPLE_RESULTS>
<?xml version="1.0" encoding="UTF-8" ?>
<EN:eDWR xmlns:EN="urn:us:net:exchangenetwork"
xmlns:facid="http://www.epa.gov/xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:us:net:exchangenetwork

D:\Node\eDWR_schema\EDWR_ZIP\DENVER02\EngEDWR\XML_ Schema\Version_2.0\eDWR_v2.0_0
3292004\EDWR_eDWR_v2.0.xsd">
<Lab_Data_Form_Type>#form.Lab_Data_Form_Type#</Lab_Data_Form_Type>
<Resub_Indic>#form.Resub_Indic#</Resub_Indic>
<Monitoring_Per_Beg>#form.Monitoring_Per_Beg#</Monitoring_Per_Beg>
... after 100 more form fields ...
</SAMPLE_RESULTS>
</cfoutput>
</CFXML>

<CFFILE
ACTION="WRITE"
FILE="C:\CFusionMX7\wwwroot\EDWSS\XMLFiles\#Variab les.varFileName#"
OUTPUT="#ToString(SampleResultXml)#">