Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
Yannovich #1
generate xml file
Hello Everyone,
I would like te generate an xml file with coldfusion
Would this be the way to go about it?:
<cfsavecontent variable = "test">
<content>
<goup>
<item title="titel1" thumb="thumb.jpg" foto="foto.jpg" />
<item title="titel1" thumb="thumb.jpg" foto="foto.jpg" />
<item title="titel1" thumb="thumb.jpg" foto="foto.jpg" />
<item title="titel1" thumb="thumb.jpg" foto="foto.jpg" />
</group>
</content>
</cfsavecontent>
<cffile action="write" file="foto.xml" output="#test#">
I thought this ought to work, but it seems it doesn't.
Any suggestions?
Thanks!
Yannovich Guest
-
How to generate PDF file from HTML file using Acrobat API's
Hi, I want to generate a PDF file from an HTML file on server side(C# .Net). Their is a COM interop called "AcrobatWeb2PDF" availaible but could... -
how to generate a vrml file in director?
i try to find a way to make movements in a *.w3d file and record them into a file that i can import into my 3D app. for example to generate... -
Can't generate a .ps file
Mac OS 9.2.2 G4 Acrobat 5.05 Adobe PS Driver 8.7 & 8.8 Adobe Illustrator 9.2.2 I'm trying to generate a .ps file from an Illustrator doc. I've... -
use php to generate excel file
is it possible to use php to generate excel document? I want to use it to dynamically generate sales report that can be downloaded from my website.... -
Generate csv file from sql table
I am looking to do the following from a C# ASP.Net applicatio 1. Generate a DS from a SQL pull of a single table. Once I have pulled the data... -
criticalim@hotmail.com #2
Re: generate xml file
The code is correct and will generate an XML file. When you say it
does not work, can you be more specific.
If it is just a reading issue, add xml header to your code.
<cfsavecontent variable = "test"><?xml version="1.0" encoding="UTF-8"?>
Yannovich wrote:> Hello Everyone,
>
> I would like te generate an xml file with coldfusion
> Would this be the way to go about it?:
>
> <cfsavecontent variable = "test">
> <content>
> <goup>
> <item title="titel1" thumb="thumb.jpg" foto="foto.jpg" />
> <item title="titel1" thumb="thumb.jpg" foto="foto.jpg" />
> <item title="titel1" thumb="thumb.jpg" foto="foto.jpg" />
> <item title="titel1" thumb="thumb.jpg" foto="foto.jpg" />
> </group>
> </content>
> </cfsavecontent>
> <cffile action="write" file="foto.xml" output="#test#">
>
> I thought this ought to work, but it seems it doesn't.
>
> Any suggestions?
>
> Thanks!criticalim@hotmail.com Guest
-
Kronin555 #3
Re: generate xml file with cf file
XML documents need a valid XML processing directive as the first line of the file.
Something like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
Kronin555 Guest



Reply With Quote

