Re: RSS feeds and # sign
Ben, try using CDATA: See if that makes any difference. On 8/22/06, Ben Nadel <[EMAIL PROTECTED]> wrote: > I am thinking that maybe this is not the error... Even with that line, I get > an error sometimes!!! > > ... > Ben Nadel > www.bennadel.com > > -Original Message- > From: Ben Nadel [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 22, 2006 10:26 AM > To: CF-Talk > Subject: RSS feeds and # sign > > I just started getting an Xml Parse error on my RSS feed... I narrowed the > problem down to the fact that one of the titles had "#" signs in it. I don't > quite understand the error, so I was hoping someone could help me out. > > I originally had: > > #XmlFormat( REQUEST.EntryQuery.name )# > > This caused errors and now I have: > > #XmlFormat( Replace( REQUEST.EntryQuery.name, "##", "", "ALL" ) > )# > > This seems to be fine. But shouldn't XmlFormat() escape any characters that > cause errors. I don't like the idea of having to use Replace() and was > hoping someone could point me in the right directions. > > Thanks! > > > Ben Nadel > www.bennadel.com > > > > > ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250609 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: RSS feeds and # sign
I figured it out... The page was timing out and it was showing a Cerro at the bottom of the page. Now I just have to figure out why the page is timing out sometimes and running instantly other times :( ... Ben Nadel www.bennadel.com -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 22, 2006 10:26 AM To: CF-Talk Subject: RSS feeds and # sign I just started getting an Xml Parse error on my RSS feed... I narrowed the problem down to the fact that one of the titles had "#" signs in it. I don't quite understand the error, so I was hoping someone could help me out. I originally had: #XmlFormat( REQUEST.EntryQuery.name )# This caused errors and now I have: #XmlFormat( Replace( REQUEST.EntryQuery.name, "##", "", "ALL" ) )# This seems to be fine. But shouldn't XmlFormat() escape any characters that cause errors. I don't like the idea of having to use Replace() and was hoping someone could point me in the right directions. Thanks! Ben Nadel www.bennadel.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250608 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: RSS feeds and # sign
I am thinking that maybe this is not the error... Even with that line, I get an error sometimes!!! ... Ben Nadel www.bennadel.com -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 22, 2006 10:26 AM To: CF-Talk Subject: RSS feeds and # sign I just started getting an Xml Parse error on my RSS feed... I narrowed the problem down to the fact that one of the titles had "#" signs in it. I don't quite understand the error, so I was hoping someone could help me out. I originally had: #XmlFormat( REQUEST.EntryQuery.name )# This caused errors and now I have: #XmlFormat( Replace( REQUEST.EntryQuery.name, "##", "", "ALL" ) )# This seems to be fine. But shouldn't XmlFormat() escape any characters that cause errors. I don't like the idea of having to use Replace() and was hoping someone could point me in the right directions. Thanks! Ben Nadel www.bennadel.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250604 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: RSS Feeds
Hi Does anybody on the list know for any more articles on 1.) Creating your own RSS feeds using Coldfusion And 2.) Displaying RSS feeds from external sources i.e. BBC, I tried the UDF in the last post but all I was receiving was a blank page ? I have also tried using another approach based on the article by Pablo Varando http://tutorial208.easycfm.com/ but am receiving the following error An error occured while Parsing an XML document. Content is not allowed in prolog. The error occurred in \testpages\rss.cfm: line 20 18 : 19 : XMLContent = trim(cfhttp.filecontent); 20 : XMLContent = XMLParse(XMLContent); 21 : 22 : -Original Message- From: Larry Lyons [mailto:[EMAIL PROTECTED] Sent: 01 June 2005 21:18 To: CF-Talk Subject: RSS Feeds >I've never done RSS Feeds before. Can someone please provide brief >details about RSS Feeds. I'll be running this on CF 5.0. > >I'll basically be displaying RSS Feeds from a few different sources, NY >Times etc. > >Also can I control how many are displayed per feed? For example I want >3 from NY times, 2 from Wash Post etc etc.. > >If anyone has an simple tutorials they've found helpful. > > >Thanks in advance. > >Ryan Ryan, If you're just consuming the RSS feeds, you might want to try this UDF: http://www.cflib.org/udf.cfm?ID=813 TranslateRSSItems(rssDoc) Description Takes a RSS feed from Blogger, Slashdot, ZDNet, etc and translates into a CF query. Based on the function TranslateMacromediaResourceFeed by Jeffry Houser ([EMAIL PROTECTED]). Returns a query. Example http://pro.blogger.com/docs/example_rss.xml"; method="GET" resolveurl="true" timeout="6000"> #title##description# ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208328 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Rss feeds... modified since... ?
>Is there a way to check the timestamp on an rss feed before actually >having to retrieve the entire feed? http://admin.mxblogspace.journurl.com/?mode=article&entry=1853 -- Roger Benningfield JournURL http://admin.support.journurl.com/ ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202688 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Rss feeds... modified since... ?
thanks! On 4/13/05, Bryan F. Hogan <[EMAIL PROTECTED]> wrote: > http://www.petefreitag.com/item/235.cfm > > -Original Message- > From: Phillip P Rutherford II [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 13, 2005 4:58 PM > To: CF-Talk > Subject: Rss feeds... modified since... ? > > Is there a way to check the timestamp on an rss feed before actually > having to retrieve the entire feed? I thought I had remembered > something in the past... but have no idea where I saw it.. > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202687 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Rss feeds... modified since... ?
> Is there a way to check the timestamp on an rss > feed before actually having to retrieve the > entire feed? I thought I had remembered something > in the past... but have no idea where I saw it.. Someone else said no, but there actually is. It relies on the publisher including a last-modified header in their HTTP response headers, but here's some code to get you started. Once you have the last modified date, you can make a decision (in code) as to whether you want to download the rest of the feed or not. Watch for line wrapping. -Justin Scott --- Code Below --- http://mxblogspace.journurl.com/users/admin/index.cfm?mode=article&entr y=1853&template=rss-full" method="HEAD"> #variables.last_modified# ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202682 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Rss feeds... modified since... ?
http://www.petefreitag.com/item/235.cfm -Original Message- From: Phillip P Rutherford II [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 4:58 PM To: CF-Talk Subject: Rss feeds... modified since... ? Is there a way to check the timestamp on an rss feed before actually having to retrieve the entire feed? I thought I had remembered something in the past... but have no idea where I saw it.. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202678 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Rss feeds... modified since... ?
No. Not before you request and parse it. However RSS 2.0 has an attribute called which should contain an integer. This is the amount of time in minutes they suggest before you reload the feed. -Adam On 4/13/05, Phillip P Rutherford II <[EMAIL PROTECTED]> wrote: > Is there a way to check the timestamp on an rss feed before actually > having to retrieve the entire feed? I thought I had remembered > something in the past... but have no idea where I saw it.. > > thanks > -- > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-[ Triangle Area ColdFusion User Group ]-= > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-[ http://tacfug.org ]-= > > ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202677 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: RSS Feeds
Eric, On Monday, March 29, 2004, 7:13:50 PM, you wrote: EH> Any quick good pointers to cf-based tag to pull rss feeds? Here is something that has worked for me. MX is required. I'm not sure if the method for detecting the feed type is all that great, but so far so good. It is set up to accept a list of feed URLs and return a record for each. Within each 'meta' record is a 'results' cell which contains the articles retrieved for that URL. xmldoc=xmlparse(cfhttp.filecontent); if(xmlchildpos(xmldoc,"rss",1) eq 1){ pathtometa="rss.channel"; pathtoitems="rss.channel.item"; }else{ pathtometa="rdf.channel"; pathtoitems="rdf.item"; } meta=evaluate("xmldoc."&pathtometa); items=evaluate("xmldoc."&pathtoitems); if(structkeyexists(meta[1],"title")){title=meta[1].title.xmltext;}else{title="";} if(structkeyexists(meta[1],"link")){link=meta[1].link.xmltext;}else{link="";} if(structkeyexists(meta[1],"description")){desc=meta[1].description.xmltext;}else{desc="";} queryaddrow(qrymeta); querysetcell(qrymeta,"title",title); querysetcell(qrymeta,"link",link); querysetcell(qrymeta,"desc",desc); querysetcell(qrymeta,"source",thisurl); qryitems=querynew("title,link,desc"); for(i=1;i lte arraylen(items);i=i+1){ if(structkeyexists(items[i],"title")){title=items[i].title.xmltext;}else{title="";} if(structkeyexists(items[i],"link")){link=items[i].link.xmltext;}else{link="";} if(structkeyexists(items[i],"description")){desc=items[i].description.xmltext;}else{desc="";} queryaddrow(qryitems); querysetcell(qryitems,"title",title); querysetcell(qryitems,"link",link); querysetcell(qryitems,"desc",desc); } querysetcell(qrymeta,"results",qryitems); ~ Ubqtous ~ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: RSS Feeds
>Any quick good pointers to cf-based tag to pull rss feeds? > >Gracias, thanks, et al! > >Regards, > >Eric J. Hoffman >Managing Partner >Datastream Connexion, LLC >1.888.690.2893 > >results. delivered. CFLib.org has a good UDF that works with CF5 and MX http://www.cflib.org/udf.cfm?ID=813 >From the site: Description Takes a RSS feed from Blogger, Slashdot, ZDNet, etc and translates into a CF query. Based on the function TranslateMacromediaResourceFeed by Jeffry Houser ([EMAIL PROTECTED]). Also EasyCFM.com has a pretty good tutorial on how to process RSS feeds: http://tutorial208.easycfm.com/ hth, larry [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]