Archive for December, 2007

December 19, 2007



December 19, 2007

RSS 2.0.1 has the internal version number 2.0. RSS 2.0.1 was proclaimed to be “frozen”, but still updated shortly after release without changing the version number. RSS now stood for Really Simple Syndication. The major change in this version is an explicit extension mechanism using XML Namespaces   

RSS 2.0

The following is an example of an RSS 2.0 file.

<?xml version="1.0"?>
<rss version="2.0">
    <title>Liftoff News</title>
    <description>Liftoff to Space Exploration.</description>
    <pubDate>Tue, 10 Jun 2003 04:00:00 GMT</pubDate>
    <lastBuildDate>Tue, 10 Jun 2003 09:41:01 GMT</lastBuildDate>
    <generator>Weblog Editor 2.0</generator>
      <title>Star City</title>
      <description>How do Americans get ready to work with Russians aboard the
        International Space Station? They take a crash course in culture, language
        and protocol at Russia's Star City.</description>
      <pubDate>Tue, 03 Jun 2003 09:39:21 GMT</pubDate>
      <title>Space Exploration</title>
      <description>Sky watchers in Europe, Asia, and parts of Alaska and Canada
        will experience a partial eclipse of the Sun on Saturday, May 31st.</description>
      <pubDate>Fri, 30 May 2003 11:06:42 GMT</pubDate>
      <title>The Engine That Does More</title>
      <description>Before man travels to Mars, NASA hopes to design new engines
        that will let us fly through the Solar System more quickly.  The proposed
        VASIMR engine would do that.</description>
      <pubDate>Tue, 27 May 2003 08:37:32 GMT</pubDate>
      <title>Astronauts' Dirty Laundry</title>
      <description>Compared to earlier spacecraft, the International Space
        Station has many luxuries, but laundry facilities are not one of them.
        Instead, astronauts have other options.</description>
      <pubDate>Tue, 20 May 2003 08:56:02 GMT</pubDate>




msdn of syndication


rss feed


Response.ContentType = “text/xml”;

XmlTextWriter xtwFeed = new XmlTextWriter(Response.OutputStream, Encoding.UTF8);


// The mandatory rss tag


xtwFeed.WriteAttributeString(“version”, “2.0”);

// The channel tag contains RSS feed details


xtwFeed.WriteElementString(“title”, “Feedpedia Today’s World News”);


xtwFeed.WriteElementString(“description”, “The latest news and journals from all over the world.”);

xtwFeed.WriteElementString(“copyright”, “Copyright 2005 – 2006 All rights reserved.”);

// Objects needed for connecting to the SQL database

SqlConnection SqlCon;

SqlCommand SqlCom;

SqlDataReader SqlDR;

// Edit to match your connection string

SqlCon = new SqlConnection(ConfigurationManager.ConnectionStrings[“ConnectionString”].ToString());

// Edit to match your stored procedure or SQL command

SqlCom = new SqlCommand(“GetTodaysHeadlines”, SqlCon);

SqlCom.CommandType = CommandType.StoredProcedure;

if (SqlCon.State == ConnectionState.Closed)




SqlDR = SqlCom.ExecuteReader();

// Loop through the content of the database and add them to the RSS feed

while (SqlDR.Read())



   xtwFeed.WriteElementString(“title”, SqlDR[“Title”].ToString());

   xtwFeed.WriteElementString(“description”, SqlDR[“Description”].ToString());

   xtwFeed.WriteElementString(“link”,; + SqlDR[“ID”]);

   xtwFeed.WriteElementString(“pubDate”, SqlDR[“Date”].ToString());





 // Close all tags








Hello world!

December 19, 2007

Welcome to This is your first post. Edit or delete it and start blogging!