& in ColdFusion query output

Hi,

Problem:
Query output results in critical error

Why does a critical error occur when there is an & in the database.

#QueryName.company#

Thanks,

John Haigh

& in ColdFusion query output

Hi John,

Are you outputting to an XML file or CFM? What exactly is in the DB - an Ampersand "&" or it's escapred equivelant "&"?

What happens if you output your value thus:

<cfoutput>#XMLFormat(QueryName.company)#</cfoutput>

Thanks

.n