In your output statement, you have the <?xml on a line below the start.
This will add a blank line to the first line of the xml.
IE will be fine with this, but Firefox will break (iirc).
Tuck the <?xml tag right up against the " in the line above.

Maybe.

Jerry

On 12/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
> 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:263611
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to