Your original code works for me. Is there anything else going on in the page
that might be causing the problem?

Adrian
Building a database of ColdFusion errors at http://cferror.org/

-----Original Message-----
From: Steve LaBadie
Sent: 29 October 2008 12:25
To: cf-talk
Subject: RE: RSS Issue


Dominic,

If I remove the cfhttp the page errors out saying
"An error occured while reading an XML document"

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
http://www.esu.edu
[EMAIL PROTECTED]
-----Original Message-----
From: Dominic Watson
Sent: Tuesday, October 28, 2008 3:57 PM
To: cf-talk
Subject: Re: RSS Issue

cfhttp is not neccessary here if you are using CF7 or above. Either...

<cfset objRss = xmlParse("http://www4.esu.edu/news.xml";) />

HTH

Dominic

2008/10/28 Steve LaBadie <[EMAIL PROTECTED]>:
> I am pulling an RSS feed to my page using this code:
>
>
>
> <td valign="top">
>
> <cfhttp url="http://www4.esu.edu/news.xml"; method="get">
>
> <cfset objRSS = xmlParse(cfhttp.filecontent)>
>
> <cfset Item_Length = arraylen(objRSS.rss.channel.item)>
>
> <cfloop index=i from="1" to=#Item_Length# step="1">
>
> <p class="news"><span class="newstitle">
>
> <a class="titlelink" href="<cfoutput>
> #objRSS.rss.channel.item[i].link.xmltext# </cfoutput>">
>
> <cfoutput> #objRSS.rss.channel.item[i].title.xmltext# </cfoutput>
>
> </a></span><br />
>
> <cfoutput> #objRSS.rss.channel.item[i].description.xmltext#
</cfoutput>
>
> <br /><strong>|</strong> <a href="<cfoutput>
> #objRSS.rss.channel.item[i].link.xmltext# </cfoutput>"
> class="eventlink">more</a></p>
>
> </cfloop>
>
> <p class="news"><a href="#" class="eventlink">all news
>>></a></p><p>&nbsp;</p></td>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314518
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to