Hi,

I'm trying to create an XML file from pulled data in our DB.

I don't know if I'm doing this the right way. Maybe someone can show me a
better way.

I have 2 generating files and one output file. It's working...somewhat..but i
don't like how I'm going about it.

File 1: newsletterRSS.cfm <-- pulls data from DB and creates an XML formatted
file (in html of course)
File 2: renderNewsLetterRSS.cfm <-- performs a CFFILE on newsletterrss.cfm and
saves it as an XML text file.
File 3: This the final xml file.

Problems: I cannot get rid of the whitespace at the top of the XML file. I've
tried <CFSILENT><CFSETTING> and checked the server admin page to suppress
whitespace....nothing.
I can also not stop the DEBUG output. I've tried CFSETTING here too.

So can someone direct me in the PROPER way of exporting an RSS feed in XML
format using CF5?

Thank you!
Loony2nz

<CFSETTING enablecfoutputonly="YES">
<cfsetting showdebugoutput="no">
<cfhttp method="get"
url="http://server/content/newsletter/newsLetterRSS.cfm?ctsrc=#ctsrc#">
</cfhttp>
<cfoutput><p>Saving testing page</p>
<p>
File Content:<br>
#CFHTTP.FileContent#
</p>
</cfoutput>
<cffile action = "write"
file = "C:/FTP/server/Htdocs/newsletter/myfile_#right(ctsrc,3)#.xml"
output = "#StripCR(CFHTTP.FileContent)#">
<CFSILENT></CFSILENT>
<CFSETTING enablecfoutputonly="no">
<cfsetting showdebugoutput="yes">