Here's my code. When I try to pull it into blogcfc as a newsfeed, it doesn't
work. I get An error occured while Parsing an XML document.
Premature end of file.
What am I missing here? Many thanks.
<cfcontent reset="true"><cfcontent type="application/xml; charset=utf-8">
<cfquery name="magazine_rss" datasource="mydns">
Select * from magazine_rss order by datepublished desc
</cfquery>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>My| Magazine RSS Feeds</title>
<link>http://www.mywebsite.com/magazine</link>
<description>News Feeds</description>
<language>en-us</language>
<copyright>Copyright 2008, me, All Rights Reserved</copyright>
<docs>http://backend.userland.com/rss</docs>
<lastBuildDate>#magazine_rss.datepublished#</lastBuildDate>
<image>
<title>Magazine RSS Feeds</title>
<url>http://mywebsite/global/images/PElogosmall.jpg</url>
<link>http://mywebsite.com</link>
</image>
<cfoutput query="magazine_rss">
<item>
<title>#title#</title>
<description><![CDATA[#blurb#]]></description>
<link>http://mywebsite.com/magazine/#link#</link>
<author>#author#</author>
<category>#category#</category>
<pubDate>#datepublished#</pubDate>
</item>
</cfoutput>
</channel>
</rss>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307063
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4