Tutorials Point


  Learning RSS
  RSS References
  RSS Resources
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

RSS References - Quick Guide


previous next AddThis Social Bookmark Button


Advertisements

Here I have listed out all the related tags for three important RSS Versions and I have given one example for each version.



Structure of RSS 0.91 - Rich Site Summary:

<?xml version="1.0"?>
<!DOCTYPE rss 
    PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" 
    "http://my.netscape.com/publish/formats/rss-0.91.dtd">
<rss version="0.91">
   <channel>
      <title>...</title>
      <link>...</link>

      <description>...</description>
      <language>...</language>
      <rating>...</rating>
      <copyright>...</copyright>

      <pubDate>...</pubDate>
      <lastBuildDate>...</lastBuildDate>
      <docs>...</docs>
      <managingEditor>...</managingEditor>

      <webMaster>...</webMaster>
      <skipHours>
          <hour>...</hour>
      </skipHours>
      <skipDays>

          <day>...</day>
      </skipDays>
      <image>
	  <title>...</title>
	  <url>...</url>

	  <link>...</link>
	  <width>...</width>
	  <height>...</height>
	  <description>...</description>

      </image>
      <item>
          <title>...</title>
          <link>...</link>
          <description>...</description>

      </item>
      ......More item tags.....
      <textInput>
          <title>...</title>
          <description>...</description>

          <name>...</name>
          <link>...</link>
      </textInput>
   </channel>
</rss>

RSS version 0.91 Example Feed:

<?xml version="1.0"?>
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
"http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">

<channel>
   <title>TutroialsPoint</title>
   <link>http://www.tutorialspoint.com</link>
   <description>
      Online Tutorials and Reference Manuals.
   </description>

   <language>en-us</language>

   <rating>
      (PICS-1.1 "http://www.rsac.org/ratingsv01.html" l 
      gen true comment "RSACi North America Server" for 
      "http://www.rsac.org" on "1996.04.16T08:15-0500" 
      r (n 0 s 0 v 0 l 0))
   </rating>

   <image>

      <title>TutroialsPoint</title>
      <url>http://www.tutorialspoint.com/images/to-logo.gif</url>
      <link>http://www.tutorialspoint.com</link>
      <width>88</width>

      <height>31</height>
      <description>
      Tutorials, Articles, discussions,and more...
      </description>
   </image>
   <item>

      <title>RSS Tutorials</title>
      <link>http://www.tutorialspoint.com/rss/index.htm</link>
      <description>
      Learn RSS in simple and easy steps.
      </description>

   </item>

   <item>
      <title>PHP Tutorials</title>
      <link>http://www.tutorialspoint.com/php/index.htm</link>

      <description>
      Learn PHP in simple and easy steps.
      </description>
   </item>

   <textInput>
      <title>Send</title>

      <description>Comments about TutoprialsPoint</description>
      <name>responseText</name>
      <link>
          http://www.tutorialspoint.com/cgi-bin/tp-contact.cgi
      </link>

   </textInput>
  
   </channel>

</rss>


Structure of RSS 1.0 - RDF Site Summary:

<?xml version="1.0"?>
<rdf:RDF>
   <channel>
      <title>...</title>
      <link>...</link>

      <description>...</description>
      <image />
      <items>...</items>
      <textInput />
   <image>

      <title>...</title>
      <url>...</url>
      <link>...</link>
   </image>

   <item>
      <title>...</title>
      <link>...</link>
      <description>...</description>

   </item>
   ......More item tags.....
   <textInput>
      <title>...</title>
      <description>...</description>

      <name>...</name>
      <link>...</link>
   </textInput>
</rdf:RDF>

RSS version 1.0 Example Feed:

<?xml version="1.0"?>

<rdf:RDF 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns="http://purl.org/rss/1.0/">

  <channel rdf:about="http://www.tutorialspoint.com">
    <title>TutorialsPoint</title>

    <link>http://tutorialspoint.com/rss</link>
    <description>
      Online Tutorials and Reference Manuals
    </description>

    <image rdf:resource=
    "http://tutorialspoint.com/images/tp-logo.gif" />

    <items>
       <rdf:Seq>
       <rdf:li resource="http://tutorialspoint.com/rss/index.htm" />
       <rdf:li resource="http://tutorialspoint.com/php/index.htm" />
       </rdf:Seq>
    </items>

    <textinput rdf:resource=
    "http://www.tutorialspoint.com/cgi-bin/tp-contact.cgi" />

  </channel>
  
  <image rdf:about="http://tutorialspoint.com/images/tp-logo.gif">
    <title>TutorialsPoint Logo</title>
    <link>http://tutorialspoint.com</link>

    <url>http://tutorialspoint.com/images/tp-logo.gif</url>
  </image>

  
  <item rdf:about="http://tutorialspoint.com/rss/index.htm">
    <title>A simple RSS tutorial</title>

    <link>http://tutorialspoint.com/rss/index.htm</link>
    <description>
        Learn RSS in simple and easy steps.
    </description>
  </item>
  
  <item rdf:about="http://tutorialspoint.com/php/index.htm">

    <title>A complete guide for PHP Programmers</title>
    <link>http://tutorialspoint.com/php/index.htm</link>
    <description>
        A free online guide for PHP. Learn PHP in very easy steps.
    </description>

  </item>

  <textinput rdf:about=
    "http://www.tutorialspoint.com/cgi-bin/tp-contact.cgi">
    <title>Contact TutorialsPoint</title>
    <description>
       Contact TutorialsPoint for more detail
    </description>

    <name>s</name>
    <link>
        http://www.tutorialspoint.com/cgi-bin/tp-contact.cgi
    </link>
  </textinput>

</rdf:RDF>



Structure of RSS 2.0 - Really Simple Syndication:

<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>...</title>
      <link>...</link>

      <description>...</description>
      <language>...</language>
      <rating>...</rating>
      <copyright>...</copyright>

      <pubDate>...</pubDate>
      <lastBuildDate>...</lastBuildDate>
      <generator>....</generator>
      <docs>...</docs>

      <cloud>...</cloud>
      <ttl>...</ttl>
      <managingEditor>...</managingEditor>
      <webMaster>...</webMaster>

      <skipHours>
          <hour>...</hour>
      </skipHours>
      <skipDays>
          <day>...</day>

      </skipDays>
      <image>
	  <title>...</title>
	  <url>...</url>
	  <link>...</link>

	  <width>...</width>
	  <height>...</height>
	  <description>...</description>
      </image>

      <item>
          <title>...</title>
          <link>...</link>
          <description>...</description>

          <author>....</author>
          <category>....</category>
          <comments>....</comments>
          <enclosure ..../>

          <guid>....</guid>          
          <pubDate>....</pubDate>
          <source>....</source>
      </item>

      ......More item tags.....
      <textInput>
          <title>...</title>
          <description>...</description>
          <name>...</name>

          <link>...</link>
      </textInput>
   </channel>
</rss>

RSS version 2.0 Example Feed:

<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>TutorialsPoint</title>

      <link>http://www.tutorialspoint.com</link>
      <description>Tutorials and Reference Manuals</description>
      <language>en-us</language>
      <pubDate>Fri, 30 May 2003 11:06:42 GMT</pubDate>

      <lastBuildDate>Fri, 30 May 2003 11:06:42 GMT</lastBuildDate>
      <docs>http://www.tutorialspoint.com/rss</docs>
      <generator>Weblog Editor 2.0</generator>
      <managingEditor>mohtashim@tutorialspoint.com</managingEditor>

      <webMaster>webmaster@tutorialspoint.com</webMaster>
      <item>

         <title>RSS Tutorial</title>
         <link>http://www.tutorialspoint.com/rss</link>

         <description>Learn RSS in simple steps</description>
         <pubDate>Fri, 30 May 2003 11:06:42 GMT</pubDate>
         <guid>
         http://www.tutorialspoint.com/rss/rss-feed-formats.htm#v0.91
         </guid>

      </item>
      <item>
         <description>RSS Feed Formats</description>
         <pubDate>Fri, 30 May 2003 11:06:42 GMT</pubDate>

         <guid>
         http://www.tutorialspoint.com/rss/rss-feed-formats.htm#v2.0
         </guid>

      </item>
    </channel>
</rss>

previous next Printer Friendly

Advertisements


  

Advertisements