Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Loony2nz #1
CF5 + XML generation
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">
Loony2nz Guest
-
PDF Generation Using ver 7
Hi I have an existing code that silently generates pdfs by supplying file path and printing to "Acrobat PDFWriter", but it's using Acrobat ver 5.... -
Key Generation
Is it at all possible to generate contribute keys on the fly? without using the Contribute software? We have well over 100 customers who use the... -
HTML Generation (Next Generation CGI)
Hi, This idea for the next generation of CGI has me thinking (see http://rubygarden.org/ruby?NextGenerationCGI). It seems that CGI would be best... -
wsdl generation from c#
i just know that i can write the struct at c#, and then asp.net will automatically generate the wsdl, but there're some limitations e.g. can't... -
[PHP] PHP code generation
I think http://www.meta-language.net/ might be something similar. Chris Hubbard wrote:



Reply With Quote

