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

Java Developer- 2 openings! (NYC)
Next Step Systems
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume
Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs


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, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
DiVitas's Mobile UC Now Available on the Latest Devices · Review: FON Fonera 2.0n · Chip Market Recovering From '08 Collapse

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