macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: Converting querry to xml

Subject: Re: Converting querry to xml
From: "existdissolve"
Date: Fri, 17 Aug 2007 18:00:43 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion
Start by wrapping the the xml information in the <cfxml> tag and define the 
name you want to assign to the variable content.  Then, after the closing 
</cfxml> tag, use cffile to write the variable you named in the cfxml to an xml 
file.  I am attaching an example from my code of the cffile.

 Hope this helps!



 <cfxml variable="xmlVariableName">
     rss file contents here....
 </cfxml>

 <cffile action="write" file="#ExpandPath('../feeds/myrssfilename.xml')#" 
output="#ToString(xmlVariableName)#">


<Prev in Thread] Current Thread [Next in Thread>