I am creating an XML feed within the following manner: My question is,
the <![CDATA[ is being ignored (sorta). It is converting the characters
as ascii. How can I get around this?

<cfset feedA1 = StructNew()>
<cfset feedA1.version = "rss_2.0">
<cfset feedA1.title = "SITE NAME : Local News">
<cfset feedA1.link = "http://www.sitenamegoeshere.com";>
<cfset feedA1.pubDate = ParseDateTime(now())>
<cfset feedA1.description="Local Headlines">
<cfset feedA1.item = ArrayNew(1)>

<cfset a = 1>

<cfoutput query="getA1Content"> 
        <cfset feedA1.item[a] = StructNew()>
        <cfset feedA1.item[a].title = replace(getA1Content.headline[a],
"<", "&lt;", "ALL")>
        <cfset feedA1.item[a].description = StructNew()>
        
        <cfset feedA1.item[a].description.value =
getA1Content.content[a]>
        <cfset feedA1.item[a].description.value =
replace(feedA1.item[a].description.value, '"', "'", "ALL")>
                
        <cfset feedA1.item[a].pubDate =
dateformat(getA1Content.runDate[a], "ddd, dd mmm yyyy") & ' ' &
timeformat(getA1Content.theTimeStamp[a], "hh:mm") & ' EST'>
        <cfset feedA1.item[a].author = writer>
        <cfset feedA1.item[a].comments = "<![CDATA[
<a href='http://www.sitenamegoeshere.com/ redir.cfm?adid=250'
target='_blank'><img src='http://www.sitenamegoeshere.com/
/banners/bannerAd.gif'></a>]]>
">
        <cfset feedA1.item[a].link = "http://www.sitenamegoeshere.com/
news/display.htm?theid=" & getA1Content.id>
        <cfset a = a + 1>
</cfoutput>

<cffeed action="create" name="#feedA1#"
outputfile="#filePath#rss\a1_complete2.xml" overwrite="true"
xmlVar="A1_xmlout">



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

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