How To Create and Implement an RSS Feed

Like a Banner! Or like Google Ads!

Honda
Magna
GMC
Sierra
Vanguard
26XLS

RSS feeds are still rather new to most internet users. Therefore, this tutorial is intended to help webmasters create an RSS feed and implement on their web site(s).

It's January 2006 as I write this and I fully expect that RSS feeds will become an integral part of the average user's internet experience soon. That is with the advent of Microsoft's next operating system, Windows Vista, RSS feeds will be closely integrated with all of Microsoft's operating system and business applications. Likewise, other major internet entities like Google, Yahoo, eBay, and Amazon are all developing features which incorporate RSS. I expect that this type of syndication will be very common and change the way we use the internet. The only caveat I suppose is that the actual name might be changed. For example, if Microsoft chooses to call RSS feeds "Active Items" or something else they consider "intuitive", then the term "RSS Feed" might quickly become obsolete, but the technology won't change much if at all.

Case Study: "Top 5 Most Recent Listings"

For the purpose of this tutorial, we will create an RSS feed which serves the five (5) most recent listings.

We will perform the following actions:
  1. Create a Jet-SQL query which creates a list of the five (5) most recent listings from 20/20 DataShed's Microsoft Access database for use with a new RSS feed.
  2. Create the RSS feed (using the query from #1 above) and configure options to update the RSS data on a regular schedule.
  3. Demonstrate how that RSS feed can be incorporated into a web page using Javascript.
  4. Discuss other applications for the new RSS feed (which can help drive traffic to specific listings).

Modifying this Example Query (Creating Your Own RSS Feeds)

Displaying Different Data Fields

The RSS specification requires very specific fields. Based on our research and policies we have created 20/20 DataShed to take advantage of the following RSS elements for items. As well, we have made some executive decisions about which fields to use to populate each element. However, depending on the particular query you use it's possible to incorporate any of the fields from the "items" table, "people" table, "categories" table, and the "item_images" table.

Selecting Different Items for Your Feed: Conditional Query Examples

The example query used in this tutorial incorporates a conditional "WHERE" claus:

WHERE categories.supercategory AND tempQuery.show_on_website And tempQuery.approved_for_display AND ((CDbl(tempQuery.closing_date)>CDbl(Now())) Or (CDbl(tempQuery.closing_date)=0)) ORDER BY tempQuery.date_entered DESC;

In english, that means:

"Use data from the tables where the category is a main category, and the item is approved and displayed publicly on the web site, and the item has not yet expired."
oh..."and sort the results by the date the item was added to the database in descending order (most recent listings first!)"

It's possible however to incorporate any "conditions" that you want. For example, you might want:

The options are truly endless and depend on how well you understand the Jet-SQL syntax. If you get stumped, contact us! We can create custom queries for you to use on a pay-per-service basis.

More Query Examples


© 2005 - 2007 20/20 Applications. All rights reserved.