How to Create RSS Feeds

 

What is RSS?

You may have been hearing about RSS for ages. But can you define it. RSS stands for ‘Really Simple Syndication’. It is a XML based data format which is used to syndicate (i.e. contribute) the contents of a web page esp. dynamic web page. Well if this is RSS, then

What is a RSS feed?

RSS feed is the syndicated content itself. But technically speaking, it is an XML file which contains channel information (i.e. website information) and one or more items of a website. These items are generally the news items of a website or blog. Each item contains item’s heading, item’s description, a link back to the full contents of the item, publication date of the item and GUID element (which uniquely defines each item). An item can contain many more elements. But for the sake of simplicity we will stick to the aforesaid elements.

 

Example of an RSS Feed Item

Example of an RSS Feed Item

 

How to develop RSS feeds

1. Open notepad

2. Copy paste the following code and then customize the code in bold to meet your requirement:

<?xml version=”1.0″ encoding=”UTF-8″ ?>
<rss version=”2.0″ xmlns:atom=”https://www.w3.org/2005/Atom”>
<channel>
<atom:link href=”https://www.mywebsite.com/my-rss.xml” rel=”self” type=”application/rss+xml” />

<title>Enter Name of your Website Here</title>
<description>Enter your website description</description>
<link>https://www.mywebsite.com/</link>
<lastBuildDate>Enter the date and time when the RSS feed was last built or updated</lastBuildDate>
<pubDate>Enter the date and time when the feed should be published</pubDate>

<category>Enter the categories which best describe your website</category>
<language>en-us</language>

<item>
<title>Enter heading of the item here</title>
<description>Describe your item here</description>
<link>Enter the link back to the full contents of the item here</link>
<category>Enter the categories which best describe your item</category>
<pubDate>Enter the date and time when the item should be published</pubDate>
<guid>Enter the link back to the full contents of the item here</guid>
</item>

<item>
<title>Enter heading of the item here</title>
<description>Describe your item here</description>
<link>Enter the link back to the full contents of the item here</link>
<category>Enter the categories which best describe your item</category>
<pubDate>Enter the date and time when the item should be published</pubDate>
<guid>Enter the link back to the full contents of the item here</guid>
</item>

</channel>

</rss>

3. Save the file as my-rss.xml

4. Upload the file on your web server.

5. Validate your RSS feed using feedvalidator.org

 

Some important points to keep in mind about RSS Feeds

  1. XML code is case-sensitive. So <item> is not sames as <ITEM> or <Item>. Similarly <lastBuildDate> is not same as <lastbuilddate> and can lead to errors. So be aware of the upper case and lower case.
  2. A RSS feed can have ‘n’ number of items or just one item.
  3. <item> and </item> tags are not used when we define a channel.
  4. lastBuildDate is the date and time when you first defined the channel (or website) or when you last modified it. You can specify any date and time. However it should not come after the pubDate (i.e. publication date) as you can’t define a website once its information is published.
  5. All date-time values must conform to the RFC 822 Date and Time Specification otherwise your feed will not work.
  6. ‘en-us’ means English of united states. It tells the RSS reader that the feed uses the English of United States.
  7. GUID stands for ‘Globally unique identifier’. There are no rules for its syntax. You can use any string to define uniqueness of an item. I used the link back to the full contents of an item as GUID for the item.
  8. The RSS Best Practices Profile contains a set of recommendations for how to create RSS 2.0 documents

 

Note: You have to use all the aforesaid elements of the channel and item in your RSS document, otherwise your feed may not be displayed by some RSS readers like Google Reader.

Example of a RSS Feed

<?xml version=”1.0″ encoding=”UTF-8″ ?>
<rss version=”2.0″ xmlns:atom=”https://www.w3.org/2005/Atom”>
<channel>
<atom:link href=”https://www.eventeducation.com/event-education.xml” rel=”self” type=”application/rss+xml” />

<title>Free Event Management, Event Planning Courses on Event Education</title>
<description>This website explains everything one needs, to become an event planner or event management professional. It is an online resource for event management professional</description>
<link>https://www.eventeducation.com/</link>
<lastBuildDate>Sun, 31 May 2009 09:50:23 +0530</lastBuildDate>
<pubDate>Sun, 31 May 2009 09:50:23 +0530</pubDate>

<category>event management, event planning, event planning tips, free event planning courses, free event management courses</category>
<language>en-us</language>

<item>
<title>How to form Event Management Company</title>
<description>Following are good ideas to start an event management company: Step 1: Decide the services you wish to sell. A service is something which is intangible like: wedding planning, party planning, organizing music concerts, fashion shows, conducting MICE (meetings, incentives, conferences and exhibitions) etc. Choose those services in which you have a strong hold, in which you have majority of your experience and expertise and which can generate maximum revenue for you. Don’t try to be jack of all trades and sell all event planning services one can think of. If majority of your experience is in wedding planning, then wedding planning is best for you.</description>
<link>https://www.eventeducation.com/forming-event-company.html</link>
<category>forming event management company, event management company</category>
<pubDate>Mon, 01 Jun 2009 10:45:15 +0530</pubDate>
<guid>https://www.eventeducation.com/forming-event-company.html</guid>
</item>
</channel>
</rss>

 

If you like this post then you should subscribe to my blog and follow me on twitter.

Do you want to Learn and Master Web Analytics in 8 Weeks?

I get dozens of emails every week from people asking for career advice in web analytics.

The questions range from ‘where do I start?’, ‘which books should I read?’, ‘how do I prepare for GAIQ?’ to how do I become a good analyst?

So I thought why not dedicate a whole video on answering these burning questions.

Here is what we are going to cover, in the next few minutes, in this video lesson:

#1 Who am I? What’s my story and why you should listen to me?

#2 The number 1 reason, why most marketers and business owners are not able to scale their advertising and maximize sales for themselves and/or for their clients.

#3 How in just couple of years, I went from a complete novice in web analytics to the author of three best selling books on web analytics? And how you can achieve the same transformation in your career and that too in much shorter time frame.

#4 What is the difference between web analytics and Google Analytics?

Join the Course

Take your analytics knowledge to the next level. Check out my best selling books on Amazon

Attribution Modelling in Google Ads and Facebook NEW
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. Learn how to leverage the knowledge of attribution modelling, understand the customer purchasing journey and determine the most effective marketing channels for investment.

Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.

Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.

Attribution Modelling in Google Analytics and Beyond
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.

Himanshu Sharma

Certified web analyst and founder of OptimizeSmart.com

My name is Himanshu Sharma and I help businesses find and fix their Google Analytics and conversion issues. If you have any questions or comments please contact me.

  • Over twelve years' experience in SEO, PPC and web analytics
  • Google Analytics certified
  • Google AdWords certified
  • Nominated for Digital Analytics Association Award for Excellence
  • Bachelors degree in Internet Science
  • Founder of OptimizeSmart.com and EventEducation.com

I am also the author of four books:

error: Alert: Content is protected !!