Well, I tried the code you pasted below and aside from the missing
<cfoutput> tags, it worked like a charm.


Are you including any other code before/after this on the page?

-----Original Message-----
From: Steve Hanzelman [mailto:[EMAIL PROTECTED]
Sent: Friday, August 13, 2004 7:52 AM
To: CF-Server
Subject: RSS Feed Error

I had a few extra minutes on my hands and figured I'd give RSS feeds a whirl
for our intranet site.

I pulled several examples from EasyCFM, CFDev, etc but when I run the
template I receive the same error for every page.

The error is-Expected "</META>" to terminate element starting on line 3.  
Expected "" to terminate element starting on line 3.  It is exactly the same
for every template regardless of differences in code.

I have included one of the templates that is throwing the error.  Obviously
it isn't the code, but I'm at a loss for what it is.  

Any ideas?
Thanks,
Steve Hanzelman

<cfparam name="rss"
         default="http://rss.news.yahoo.com/rss/topstories" />

<cfhttp url=""
        method="GET"
        resolveUrl="false" />

<cfset myXMLDoc = XMLParse(cfhttp.filecontent) />
<cfset myItems = XMLSearch(myXMLDoc, "/rss/channel/item") />

<cfloop from="1" to="#arrayLen(myItems)#" index="i">
  <a href="" />
  #myItems[i].description.xmltext#
</cfloop>
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to