Adobe Dreamweaver Forums



Last 10 THreads :         Whats the difference between arrayCollection = null andarrayCollection.removeAll()? (Last Post : atta707 - Replies : 1 - Views : 2 )           »          Unable to create SWC in Flash CS4 (Last Post : ChickenSupreme - Replies : 3 - Views : 8 )           »          Change html page image by the month (Last Post : malcster2 - Replies : 8 - Views : 9 )           »          HELP ON INSETR RECORD php page (Last Post : DerRoteBaron - Replies : 0 - Views : 1 )           »          URLRequest behavior (Last Post : Andrei1 - Replies : 3 - Views : 6 )           »          Trouble with SQL Query Tool on Leopard (Last Post : pdenlinger - Replies : 0 - Views : 1 )           »          Adding database RDS Login Dreamweaver 8 Coldfusion 8 (Last Post : ClubbyJMC2008 - Replies : 2 - Views : 3 )           »          Can't install Fireowrks Extension in CS4 (Last Post : ssailer - Replies : 3 - Views : 27 )           »          Fireworks CS3 or CS4 and Vista 64 bit O.S. (Last Post : ssailer - Replies : 0 - Views : 1 )           »          Newbie- Help with Flash dynamic pop up box (Last Post : Gipoh - Replies : 1 - Views : 2 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Cold Fusion
 
Tags:



Reply
  #1 (permalink)  
Old 10-09-2008, 09:53 PM
Lei Hu
 
Posts: n/a
Diggs:
Default cffile and xml

Hi everyone,
Can the following code
<CFFile Action="Write"
file="test.xml"
output="have a nice day"
>

create a xml file?
I want to create a xml file using the CFFile command.

Thanks



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-09-2008, 09:53 PM
Ian Skinner
 
Posts: n/a
Diggs:
Default Re: cffile and xml

Lei Hu wrote:
> Hi everyone,
> Can the following code
> <CFFile Action="Write"
> file="test.xml"
> output="have a nice day"
> >

> create a xml file?


Well, no since the output 'have a nice day' is not valid XML.
Otherwise, if you output something like, let us say '<aRoot>have a nice
day</aRoot>' -- or a variable that contained this --, that *was* bare
minimum, valid XML data, then you would have an xml file.

In other, less sarcastic, words. Yes <cffile ...> can write XML, or any
other text based, data to a file with easy.

It can even do something with binary files, but that takes more
knowledge and has more restrictions.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 11:49 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk