You don't even need to write it to a file. Point the Flash app at a CFM page that dynamically generates the XML (or returns a cached version of it if performance is an issue) and set the mime type of the response to XML. You have no orphan files, and the Flash app never knows (or cares) that the XML is actually being created on the fly.
On 9/5/07, Josh Nathanson <[EMAIL PROTECTED]> wrote: > > > I'm thinking of two different options: > > 1. Create a regular variable and put the code directly in there. > > 2. Make use of the XML functions to create the XML object in memory > > and then figure out how to get it to the file. > > > I would say option 1. If you are writing to a file there's no need to > convert to an XML object. > > <cfsavecontent variable="myxml"> > <?xml> > <cfoutput> > dynamic content here - use XMLFormat to clean out bad xml > characters > </cfoutput> > </cfsavecontent> > > Then cffile to write the "myxml" string to a file. > > -- Josh > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287839 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

