spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / xml / column13

Creating RSS files for your Web site

A full-fledged RSS example

Technical Lead
Thomson Reuters (Markets) LLC
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume
Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?


The easist way to create your own RSS file is to take a full-fledged example like the one below and modify it to reflect your own content. Feel free to borrow the one below and adapt it to suit your needs:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="0.91">
  <channel>
    <title>eXploringXML</title> 
    <link>http://exploringxml.com</link> 
    <description>Free tutorials, examples, and tools for XML at WebReference</description>
    <language>us-en</language>
    <copyright>Copyright 2000, internet.com.</copyright> 
    <managingEditor>mclassen@internet.com</managingEditor> 
    <webMaster>webmaster@internet.com</webMaster> 
    <image>
      <title>eXploringXML</title> 
      <url>http://webref.com/xml/art/logo.gif</url> 
      <link>http://exploringxml.com</link> 
      <width>88</width> 
      <height>31</height> 
      <description>Free tutorials, examples, and tools for XML at WebReference</description> 
    </image>
    <item>
      <title>Editing XML: Addendum</title>
      <link>http://www.webref.com/xml/column8/addendumA/</link>
      <description>More XML Editors</description> 
    </item>
    <item>
      <title>WAP: The Web for Cellphones and PDAs</title>
      <link>http://www.webref.com/xml/column12/</link>
      <description>The Web on Aethernet</description> 
    </item>
  </channel>
</rss>

This example shows the most widely used tags for the eXploringXML channel at WebReference. To keep it short it only contains two items, but naturally you can add as many as you like.

Publishing your RSS file

Now that you have created your own RSS file just put it somewhere on your Web server and you are done! Just note the URL and the next article will explain how to let the world know about your new exciting offering.

Keep in mind that you should update the RSS file every time you put new material on your Web site. Whether you maintain the RSS file by hand or write a small tool that creates RSS from your HTML depends on your Web site layout, and your preference of course. An outdated RSS file is of little value.

Looking forward to the outlook.

http://www.internet.com

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business

Produced by Michael Claßen
All Rights Reserved. Legal Notices.

URL: http://www.webreference.com/xml/column13/4.html
Created: Jun 18, 2000
Revised: Jun 18, 2000