Ensure you XMLFormat() everything.

"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: Barney Boisvert
To: CF-Talk
Sent: Fri Apr 06 19:23:34 2007
Subject: Re: CFXML - What am I doing wrong

Looks like you've got a #chr(28)# somewhere in your content.  That's
not a legal character in an XML doc, so you have to escape it somehow.

cheers,
barneyb

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
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

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