rsscommentsatom-feedsyndication-feed

Syndication format for describing threaded comments?


How to describe comments tree with Atom/RSS?


Solution

  • There's a draft standard to extend Atom with threaded discussions, but that's no longer active. This is a feed with comments:

    <feed xmlns="http://www.w3.org/2005/Atom"
           xmlns:thr="http://purl.org/syndication/thread/1.0">
       <id>http://www.example.org/myfeed</id>
       <title>My Example Feed</title>
       <updated>2005-07-28T12:00:00Z</updated>
       <link href="http://www.example.org/myfeed" />
       <author><name>James</name></author>
       <entry>
         <id>tag:example.org,2005:1</id>
         <title>My original entry</title>
         <updated>2006-03-01T12:12:12Z</updated>
         <link
           type="application/xhtml+xml"
           href="http://www.example.org/entries/1" />
         <summary>This is my original entry</summary>
       </entry>
       <entry>
         <id>tag:example.org,2005:1,1</id>
         <title>A response to the original</title>
         <updated>2006-03-01T12:12:12Z</updated>
         <link href="http://www.example.org/entries/1/1" />
         <thr:in-reply-to
           ref="tag:example.org,2005:1"
           type="application/xhtml+xml"
           href="http://www.example.org/entries/1"/>
         <summary>This is a response to the original entry</summary>
       </entry>
    </feed>