Use cfheader and cfcontent to set they data type, reset the output, etc. Then just print the XML. If you really need to FORCE them to download it (something I'd not recommend), you could always misset the MIME type to something like application/octet-stream.
--Ben Doom Chad Gray wrote: > I want cfcontent to take xml data from a query and force the user to download > it as an XML file. > > Any tips? > > I keep getting a CF Error if I put the xml in the variable attribute of > cfcontent. > > "java.lang.String" is not a supported variable type. The variable is expected > to contain binary data. > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284525 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4