RSS 1.0 and 2.0 Blog Comments Module

Model

<item> element:

<comments> element:

<comment> elements:

Description

A module for including weblog comments in an RSS feed.

Namespace Declaration

Syntax

blogcomments:comments

blogcomments:comments is a container tag for all the comments on an item. It can contain zero or more <comment>s

blogcomments:comment

blogcomments:comment is a container tag for an individual comment on an item.

blogcomments:name

blogcomments:name is the name of the person who wrote the comment.

blogcomments:email

blogcomments:email is the email address of the person who wrote the comment. In RSS 2.0 it should be the content of the element, in RSS 1.0 it should be an empty element with the address in an rdf:resource attribute, with the "mailto:" protocol prepended:

blogcomments:ip

blogcomments:ip is the IP address of the person who wrote the comment.

blogcomments:url

blogcomments:url is the URL of a web page for the person who wrote the comment. In RSS 2.0 it should be the content of the element, in RSS 1.0 it should be an empty element with the address in an rdf:resource attribute.

blogcomments:date

blogcomments:date is the date/time of the comment, in RFC822 + 4 digit year format for RSS 2.0, or W3CDTF for RSS 1.0.

blogcomments:body

blogcomments:body is the body of the comment. If it isn't plain text, it should either be entity-encoded or CDATA-escaped.

Example: RSS 1.0

<?xml version="1.0" encoding="utf-8"?> 

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

  <channel rdf:about="http://example.org/rss.rdf">
    <title>Example Feed</title>
    <link>http://www.example.org</link>

    <description>Simply for the purpose of demonstration.</description>

    <items>
      <rdf:Seq>
        <rdf:li resource="http://example.org/item/" />
      </rdf:Seq>

    </items>
    
  </channel>

  <item rdf:about="http://example.org/item/">
    <title>The Example Item</title> 
    <link>http://example.org/item/</link>

    
    <blogcomments:comments>
      <blogcomments:comment>
        <blogcomments:name>John Smith</blogcomments:name>
        <blogcomments:email rdf:resource="mailto:jsmith@example.com"/>
        <blogcomments:ip>127.0.0.1</blogcomments:ip>
        <blogcomments:url rdf:resource="http://example.com/jsmith/"/>
        <blogcomments:date>2002-11-25T14:38+00:00</blogcomments:date>
        <blogcomments:body>
          <![CDATA[What a <em>brilliant</em> post!]]>
        </blogcomments:body>
      </blogcomments:comment>
    </blogcomments:comments>
    
  </item> 

</rdf:RDF>

Example: RSS 2.0

<?xml version="1.0" encoding="utf-8"?> 

<rss 
  xmlns:blogcomments="http://purl.org/net/rssmodules/blogcomments/"
> 

  <channel>
    <title>Example Feed</title>
    <link>http://www.example.org</link>

    <description>Simply for the purpose of demonstration.</description>


    <item>
    <title>The Example Item</title> 
    <link>http://example.org/item/</link>

    
    <blogcomments:comments>
      <blogcomments:comment>
        <blogcomments:name>John Smith</blogcomments:name>
        <blogcomments:email>jsmith@example.com</blogcomments:email>
        <blogcomments:ip>127.0.0.1</blogcomments:ip>
        <blogcomments:url>http://example.com/jsmith/</blogcomments:url>
        <blogcomments:date>Mon, 25 Nov 2002 14:37:34 GMT</blogcomments:date>
        <blogcomments:body>
          What a &lt;em&gt;brilliant&lt;/em&gt; post!
        </blogcomments:body>
      </blogcomments:comment>
    </blogcomments:comments>
    
  </item> 

  
  </channel>
</rss>

Author

Phil Ringnalda, philringnalda.com

Version

Latest Version: http://purl.org/net/rssmodules/blogcomments/

DRAFT 0.1 2002-11-25

Status

DRAFT

Rights

Copyright © 2002 by the Author.

Permission to use, copy, modify and distribute the RSS 1.0 and 2.0 Blog Comments Module Specification and its accompanying documentation for any purpose and without fee is hereby granted in perpetuity, provided that the above copyright notice and this paragraph appear in all copies. The copyright holders make no representation about the suitability of the specification for any purpose. It is provided "as is" without expressed or implied warranty.

This copyright applies to the RSS 1.0 and 2.0 Blog Comments Module Specification and accompanying documentation and does not extend to the RSS Module's format itself.