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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:274704
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4