Either use XMLFormat() or wrap dynamic data in a CDATA block: <description><![CDATA[#Post.PostContent#]]></description>
I prefer the latter simply because it's native XML and doesn't perform any conversion of my data. Either should work perfectly well, though. On 4/6/07, Joel Watson <[EMAIL PROTECTED]> wrote: > Can somebody tell me what's wrong with this code? > > I have a podcast that uses exactly the same format (with different tags, > obviously) and works fine. With this one, however, I am simply trying to > create a basic feed and I continue to get this error: > > An error occured while Parsing an XML document. > An invalid XML character (Unicode: 0x1c) was found in the element content of > the document. > > The error occurred in updatefeed.cfm: line 32 > > 30 : </item> > 31 : </cfoutput> > 32 : </cfloop> > 33 : </channel> > 34 : </rss> > > > Here is my code: > > <cfquery name="Post" datasource="#request.dsn#"> > SELECT * > FROM Posts > ORDER BY PostDate Desc > LIMIT 10 > </cfquery> > > <CFXML VARIABLE="EDXML" casesensitive="no"> > > <rss version="2.0"> > <channel> > <title>Exist~Dissolve</title> > <link>http://www.existdissolve.com/</link> > <description>The Singularity of Being and Nothingness</description> > <language>en-us</language> > <pubDate><cfoutput>#Post.PostDate#</cfoutput></pubDate> > <lastBuildDate>Wed, 04 Apr 2007 09:41:01 GMT</lastBuildDate> > <webMaster>[EMAIL PROTECTED]</webMaster> > > <cfloop query="Post"> > <cfoutput> > <item> > > <title>#Post.PostTitle#</title> > <link>http://existdissolve.com/index.cfm?postid=#Post.ID#</link> > <description>#Post.PostContent#</description> > <pubDate>#LSDateFormat(Post.PostDate, 'ddd, dd mmm YYYY' )# > #TimeFormat(Post.PostDate, 'HH:mm:ss')# GMT</pubDate> > <guid>http://existdissolve.com/index.cfm?postid=#Post.ID#</guid> > > </item> > </cfoutput> > </cfloop> > </channel> > </rss> > </cfxml> > > <cffile action="write" file="#ExpandPath('existdissolvefeed.xml')#" > output="#ToString(EDXML)#"> > <cflocation url="index.cfm"> > > > > > > Thanks! > > Joel > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274709 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4