Casual Articles
#1 in Business Subscribe Email Print

You are here: Home > Internet and Businesses Online > Web Development > Consuming RSS Feeds With ColdFusion

Tags

  • speed
  • channelthats
  • hopefully
  • album review
  • coldfusion parsing

  • Links

  • Agility - Values and Concepts of the Malcolm Baldrige Criteria; Part 5
  • Refinance Home Equity Loan
  • What To Look For In An Antivirus Trial
  • Casual Articles - Consuming RSS Feeds With ColdFusion

    Internet Users Choose Speed And Readability Over Appearance - Web Poll
    More than 93 per cent of Internet users indicated they favour speed and readability over appearance when visiting websites, according to a recent online poll conducted by Webcopyplus.When Internet users were asked what's likely to drive them away from a website:- 51.2 per cent indicated "slow load times" - 42.2 per cent specified "weak web copy" - 6.6 per cent noted "poor visual presentation"A total of 258 users participated in the web writing service provider's online poll during a four-month period that ended in April of 2007.The poll results clearly suggest functionality and clear messages top Internet users' desires and demands.SpeedA total of 132 Internet users noted they are quick
    ColdFusion and how it relates to a popular web practice known as RSS.

    We'll look at a fun and popular feed from RollingStone Magazine. Located here http://www.rollingstone.com/rssxml/album_reviews.xml as of the time of this article.

    It's a feed that I have implemented on several of my websites. Now it's important to note that you should select feeds that are relevant to your website, I have several music based websites and thus having an "Album Review" feed was appropriate. Ok, so now what do we do with this feed

    Understanding Search Engine Robots
    If there is one thing I have learned about robots, it is that there is absolutely no pattern to them. Most robots are stupid and wander randomly.For example, 50% of robot hits to my sites, ask for the robots.txt page and then go away never asking for anything else. Then they come back a week later, ask for the same thing and then go away, again. This happens over and over again for months. I have never figured it out. What are they doing? If they wanted to see if the website was really a web site, they could just Ping it. This would be much faster and much more efficient. They seldom visit another page and if they do, they ask for one other page every visit or so. Some come in and issue rapid-fire requests for every page in the websi
    ColdFusion doesn't seem to get the respect it deserves amongst the dedicated Java or .NET or even PHP development circles, but having worked in all of those environments, I'd like to state for the record, that completing a large scale development project AHEAD of schedule, keeping your Business Managers and Projects Managers happy, and let's not forget the most important of all... THE CLIENT...Well, that's priceless. Well worth any investment made towards ColdFusion.

    Web services, RSS, XML, SOAP to name several, are all welcomed friends to the ColdFusion web development language. This article will focus on the likes of RSS and XML.

    Definition:

    RSS is a family of web feed formats used to publish frequently updated digital content, such as blogs, news feeds or podcasts. Consumers of RSS content use special browsers called aggregators to watch for new content in dozens or even hundreds of web feeds. The initials "RSS" are variously used to refer to the following standards:

    Really Simple Syndication (RSS 2.0)
    Rich Site Summary (RSS 0.91, RSS 1.0)
    RDF Site Summary (RSS 0.9 and 1.0)

    RSS formats are specified in XML (a generic specification for data formats). RSS delivers its information as an XML file called an "RSS feed", "webfeed", "RSS stream", or "RSS channel".

    That's the Wikipedia definition for an RSS feed. What's not mentioned is that developers are able to take advantage of the content provided by these RSS feeds to display current and changing data on their websites, which adds value to the website and hopefully bring return visitors for more of the information that you provide.

    Consuming an RSS feed in ColdFusion can be as simple or as complicated as you want it to be. There are several ways or more, to do this in ColdFusion. Parsing through array elements and defining the parent elements to children and testing for grandchildren elements, and recursive behaviors etc. But this article is not for the experienced ColdFusion developer. This article is for someone who might like to see some of the "ease of operation" of ColdFusion and how it relates to a popular web practice known as RSS.

    We'll look at a fun and popular feed from RollingStone Magazine. Located here http://www.rollingstone.com/rssxml/album_reviews.xml as of the time of this article.

    It's a feed that I have implemented on several of my websites. Now it's important to note that you should select feeds that are relevant to your website, I have several music based websites and thus having an "Album Review" feed was appropriate. Ok, so now what do we do with this feed y

    It's Good to Know Your Banker
    Recently my bank opened a new branch that is a few miles away from my house. I used to visit the local branch that was located in the grocery store and enjoyed seeing the ladies on a weekly basis who were the tellers.Since the store branch closed, I’m forced to travel a few miles more down the road to the new beautiful building that also offers drive through service. I’ve been getting used to that recently and so only spied at the tellers through the camera lens.I’ve since discovered that it’s worth it to go inside the bank and get to know the tellers. And I also learned that it’s good to know the managers!On one particular day I deposited money into the wrong account. I have a few accounts.. for business and/or persona
    welcomed friends to the ColdFusion web development language. This article will focus on the likes of RSS and XML.

    Definition:

    RSS is a family of web feed formats used to publish frequently updated digital content, such as blogs, news feeds or podcasts. Consumers of RSS content use special browsers called aggregators to watch for new content in dozens or even hundreds of web feeds. The initials "RSS" are variously used to refer to the following standards:

    Really Simple Syndication (RSS 2.0)
    Rich Site Summary (RSS 0.91, RSS 1.0)
    RDF Site Summary (RSS 0.9 and 1.0)

    RSS formats are specified in XML (a generic specification for data formats). RSS delivers its information as an XML file called an "RSS feed", "webfeed", "RSS stream", or "RSS channel".

    That's the Wikipedia definition for an RSS feed. What's not mentioned is that developers are able to take advantage of the content provided by these RSS feeds to display current and changing data on their websites, which adds value to the website and hopefully bring return visitors for more of the information that you provide.

    Consuming an RSS feed in ColdFusion can be as simple or as complicated as you want it to be. There are several ways or more, to do this in ColdFusion. Parsing through array elements and defining the parent elements to children and testing for grandchildren elements, and recursive behaviors etc. But this article is not for the experienced ColdFusion developer. This article is for someone who might like to see some of the "ease of operation" of ColdFusion and how it relates to a popular web practice known as RSS.

    We'll look at a fun and popular feed from RollingStone Magazine. Located here http://www.rollingstone.com/rssxml/album_reviews.xml as of the time of this article.

    It's a feed that I have implemented on several of my websites. Now it's important to note that you should select feeds that are relevant to your website, I have several music based websites and thus having an "Album Review" feed was appropriate. Ok, so now what do we do with this feed

    Move Inventory, Not Workers
    A plant can save space, time and money with a carouselMany companies think material handling automation is a nice idea, but something for the big guys. After all, computers and automated systems cost money. Automation is designed for high-volume shops. It takes up space. It requires training, and that means hours spent away from production. Once installed, automation needs to be maintained-and that means more downtime. Too often, the decision to automate is put off until a future day when the company thinks it's big enough to need it-or big enough to afford it.In reality, material handling automation comes in many sizes. It saves far more productive hours than it takes in training, installation and maintenance. It can a
    r> Rich Site Summary (RSS 0.91, RSS 1.0)
    RDF Site Summary (RSS 0.9 and 1.0)

    RSS formats are specified in XML (a generic specification for data formats). RSS delivers its information as an XML file called an "RSS feed", "webfeed", "RSS stream", or "RSS channel".

    That's the Wikipedia definition for an RSS feed. What's not mentioned is that developers are able to take advantage of the content provided by these RSS feeds to display current and changing data on their websites, which adds value to the website and hopefully bring return visitors for more of the information that you provide.

    Consuming an RSS feed in ColdFusion can be as simple or as complicated as you want it to be. There are several ways or more, to do this in ColdFusion. Parsing through array elements and defining the parent elements to children and testing for grandchildren elements, and recursive behaviors etc. But this article is not for the experienced ColdFusion developer. This article is for someone who might like to see some of the "ease of operation" of ColdFusion and how it relates to a popular web practice known as RSS.

    We'll look at a fun and popular feed from RollingStone Magazine. Located here http://www.rollingstone.com/rssxml/album_reviews.xml as of the time of this article.

    It's a feed that I have implemented on several of my websites. Now it's important to note that you should select feeds that are relevant to your website, I have several music based websites and thus having an "Album Review" feed was appropriate. Ok, so now what do we do with this feed

    Traffic Building - How to Use Google Adwords to Create Traffic
    Traffic building is one of the cornerstones of a profitable internet business, and although I do not believe that Google Adwords is the most profitable way to create long-term business, it is a useful tool to use to test squeeze pages and opt in script.Google Adwords allows you to ramp up the number of visitors to several hundred per day, depending on the keyword and the money you are willing to spend.Now, the quality of your Adwords subscribers, in my experience, is much lower than the quality of a good ezine solo ad subscriber or a subscriber who joined after reading one of your articles.So one of the most important things to do and to know with Google Adwords is that you have to test everything you do. One of the th
    hopefully bring return visitors for more of the information that you provide.

    Consuming an RSS feed in ColdFusion can be as simple or as complicated as you want it to be. There are several ways or more, to do this in ColdFusion. Parsing through array elements and defining the parent elements to children and testing for grandchildren elements, and recursive behaviors etc. But this article is not for the experienced ColdFusion developer. This article is for someone who might like to see some of the "ease of operation" of ColdFusion and how it relates to a popular web practice known as RSS.

    We'll look at a fun and popular feed from RollingStone Magazine. Located here http://www.rollingstone.com/rssxml/album_reviews.xml as of the time of this article.

    It's a feed that I have implemented on several of my websites. Now it's important to note that you should select feeds that are relevant to your website, I have several music based websites and thus having an "Album Review" feed was appropriate. Ok, so now what do we do with this feed

    Internet Marketing Trends In 2007 And Beyond
    I will go straight to the heart revealing the internet marketing trends in year 2007 and beyond that I believe is going to ride up a storm in the internet world.1. Blogging:Many companies have taken advantage of blogging, including large corporations such as Dell, General Electric and more. Blogging allows anyone (including businesses) to promote his or her products and services free of charge. Usually, these companies hire a writer to blog about things related to their products and services. The blogs usually consist of about 300-500 words of interesting information related to the company. This helps get people interested in their business. Those who are interested in computers and technology will find blogs related to this
    ColdFusion and how it relates to a popular web practice known as RSS.

    We'll look at a fun and popular feed from RollingStone Magazine. Located here http://www.rollingstone.com/rssxml/album_reviews.xml as of the time of this article.

    It's a feed that I have implemented on several of my websites. Now it's important to note that you should select feeds that are relevant to your website, I have several music based websites and thus having an "Album Review" feed was appropriate. Ok, so now what do we do with this feed you ask? Well, basically there are only 3 steps to consuming and parsing an XML/RSS feed.

    1. Read the Feed in
    2. Loop through the elements of the feed
    3. Display the feed

    Am I simplifying things a bit? Not really, the purpose here is to show how ColdFusion can do much of the 'heavy lifting' as it pertains to application development making many day to day programming tasks much less tedious.

    Here's an example:

    In ColdFusion we read the feed in like this.

    < cfhttp url="http://www.rollingstone.com/rssxml/album_reviews.xml" method="GET" resolveurl="No">< /cfhttp >
    < cfset album_reviews_xml=XMLParse(cfhttp.FileContent) >

    What this does is utilize the CFHTTP tag in ColdFusion which has many many uses, in this case it performs the request for the XML document on the server.

    The second line defines a variable called "album_reviews_xml" and gives it the value of the http response. Using the built in function "XMLParse()" in ColdFusion takes the http response and delivers it to your browser in XML format or as an XML Object for you OOP guys.

    If you would like to have ColdFusion show you a 'pretty' presentation of the XML you can simply add a cfdump statement to your document and you will see a nicely rendered and easy to read xml structure.

    The next step is parsing or looping through the elements of the XML Object.

    You do that like this:

    < cfoutput >
    < cfloop index="x" from="1" to="#ArrayLen(album_reviews_xml.rss.channel.item)#" >
    Title: #album_reviews_xml.rss.channel.item[x].title.xmlText#
    Link: < a href="#album_reviews_xml.rss.channel.item
    [x].link.xmlText#" >click here< /a >
    Description:#album_reviews_xml.rss.channel.item[x].description.xmlText#

    < /cfloop >
    < /cfoutput >

    This loop as shown, iterates through all of the elements of the document and displays the most common items in an RSS feed which are the TITLE, LINK and DESCRIPTION. Some feeds aren't formed entirely to standard and may have other elements designs, and of course this is not all of the data that you can ge

    HTTP = HTML link (for blogs, profiles,phorums):
    <a href="http://www.casualarticles.com/article/86572/casualarticles-Consuming-RSS-Feeds-With-ColdFusion.html">Consuming RSS Feeds With ColdFusion</a>

    BB link (for phorums):
    [url=http://www.casualarticles.com/article/86572/casualarticles-Consuming-RSS-Feeds-With-ColdFusion.html]Consuming RSS Feeds With ColdFusion[/url]

    Related Articles:

    4 Ways to Turn Your Restaurant Job into a Real Career

    So, Your Business Strategy... Well... Sucks! Now What are You Going to Do?

    What Everyone Should Know About Starting An Online Business

    Bookmark it: del.icio.us digg.com reddit.com netvouz.com google.com yahoo.com technorati.com furl.net bloglines.com socialdust.com ma.gnolia.com newsvine.com slashdot.org simpy.com shadows.com blinklist.com