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

Engineer Project Manager
Aquent
US-TX-Houston

Justtechjobs.com Post A Job | Post A Resume
Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source

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.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

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

webref The latest from WebReference.com Browse >
Administering RBAC in PHP 5 CMS Framework · xref: Automatic Cross Referencing Script · Book Review: Content Rich
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags

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