All,

I need to create/write an xml file using cffile and I'm getting errors due to 
the xml dtd. (below)
I've never used cf's xml tage before.  Any direction would be great.

What' I've got so far.

 <CFQUERY name="ANY_APPROVED" datasource="#datasource#">
 select *
 from dbo.tbl_babies_of_week_homepage
 where bwk_active = 0 AND bwk_on_homepage = 0 and BWK_EMAIL_CONFIRMED = 1 AND 
bwk_email_approved = 1 AND bwk_email_reply = 1
 </CFQUERY>

<cffile 
action = "write" 
file = "#BWK_XML_PATH#images.xml"  
output = "
<?xml version="1.0" encoding="UTF-8"?>
<gallery>
<album title="Babies of the week" description="Babies of the week" 
lgPath="/gallery/babyimages1/large/">
<CFOUTPUT query="ANY_APPROVED">
<img src="#bwk_image#" />
</CFOUTPUT>
</album>
</gallery>
"> 

D

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263603
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to