Additionally, I have just had a problem where the XML would validate but
then not display in IE7. The problem was that the xml text contained the
escaped version of the pound symbol (£) which XMLFormat creates
when it encounters '£'. The solution was this:

<cffile action="write" ... charset="UTF-8">

Anyway, that may or may not be of any use to you :p

Dominic

On 17/07/07, Zaphod Beeblebrox <[EMAIL PROTECTED]> wrote:
>
> try using <img src="<cfoutput>#xmlformat(homepage.cb_imaged_resized
> )#</cfoutput>"
> />
>
> On 7/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> wrote:
> > Any ideas? I'm getting the following error message ...
> >
> > The following information is meant for the website developer for
> debugging purposes.
> >
> > Error Occurred While Processing Request
> > An error occured while Parsing an XML document.
> > The entity name must immediately follow the '&' in the entity reference.
> >
> > The error occurred in D:\Inetpub\wwwroot\Yobaby\index_CB_test.cfm: line
> 29
> >
> > 27 : <CFloop query="homepage">
> > 28 : <img src="<cfoutput>#homepage.cb_image_resized#</cfoutput>" />
> > 29 : </CFLOOP>
> > 30 : </album>
> > 31 : </gallery>
> >
> >
> >
> >
> >
> >
> > CODE
> >
> >
> > <!--- WRITE XML DOCUMENT --->
> >  <CFQUERY name="homepage" datasource="#datasource#">
> > SELECT     *
> > FROM         dbo.tbl_contest_2007
> > WHERE     (cb_email_confirmed = 1) AND (cb_image_resized IS NOT NULL)
> >  </CFQUERY>
> > <!--RENAME XML FILE WITH CURRENT DATE TO KEEP A HISTORY ... -->
> > <CFXML variable="gallery">
> > <gallery>
> > <album title="Contest" description="Contest"
> lgPath="/images/contest/2007/large/">
> > <CFloop query="homepage">
> > <img src="<cfoutput>#homepage.cb_image_resized#</cfoutput>" />
> > </CFLOOP>
> > </album>
> > </gallery>
> > </CFXML>
> > <cffile action = "write" file = "images_cb.xml" output = "#gallery#">
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283911
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