<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: Crux's Code Snippets</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 05 Oct 2008 19:31:43 GMT</pubDate>
    <description>DZone Snippets: Crux's Code Snippets</description>
    <item>
      <title>Beefed up RSS2 template for consumption with the Google Feed API Slide Show Control</title>
      <link>http://snippets.dzone.com/posts/show/4083</link>
      <description>// description of your code here&lt;br /&gt;&lt;br /&gt;&lt;code&gt;xml.instruct!&lt;br /&gt;&lt;br /&gt;# RSS2 rxml template based on: http://snippets.dzone.com/posts/show/558&lt;br /&gt;xml.rss "version" =&gt; "2.0", \&lt;br /&gt;        "xmlns:dc" =&gt; "http://purl.org/dc/elements/1.1/", \&lt;br /&gt;        "xmlns:media" =&gt; "http://search.yahoo.com/mrss/" do&lt;br /&gt;&lt;br /&gt;    xml.channel do&lt;br /&gt;&lt;br /&gt;        xml.title       "foto-foo :: public timeline"&lt;br /&gt;        xml.link        url_for :only_path =&gt; false, :controller =&gt; 'feeds'&lt;br /&gt;        xml.pubDate     CGI.rfc1123_date(@images.first.updated_at) if @images.any?&lt;br /&gt;        xml.description "foto-foo :: public timeline image feed"&lt;br /&gt;&lt;br /&gt;        host = "AWS.S3.storage.host"&lt;br /&gt;        @images.each do |img|&lt;br /&gt;            img.url = "http://#{host}/#{img.name}"&lt;br /&gt;            xml.item do&lt;br /&gt;                xml.title       img.name&lt;br /&gt;                xml.link        url_for :only_path =&gt; false, :controller =&gt; 'feeds', :action =&gt; 'show', :id =&gt; img.id&lt;br /&gt;                xml.description "&lt;a href='#{img.url}'&gt;&lt;img src='#{img.url}'/&gt;&lt;/a&gt;"&lt;br /&gt;                xml.enclosure :url =&gt; "#{img.url}", :type =&gt; "image/jpg"&lt;br /&gt;&lt;br /&gt;                xml.pubDate     CGI.rfc1123_date img.updated_at&lt;br /&gt;                xml.guid        url_for :only_path =&gt; false, :controller =&gt; 'posts', :action =&gt; 'show', :id =&gt; img.id&lt;br /&gt;                xml.author      "\"user-#{img.user_id}\" (#{img.user_id}@foto-foo.com)"&lt;br /&gt;&lt;br /&gt;                xml.media :group do&lt;br /&gt;                    xml.media :title, img.name&lt;br /&gt;                    xml.media \&lt;br /&gt;                        :content, :type =&gt; "#{img.mime}", :medium =&gt; "image", \&lt;br /&gt;                        :url =&gt; "#{img.url}"&lt;br /&gt;                        xml.media :credit, "#{img.credit.txt}", \&lt;br /&gt;                                :role =&gt; "#{img.credit.role}" &lt;br /&gt;                    xml.media :description, "#{img.desc}", :type =&gt; 'plain'&lt;br /&gt;                    xml.media :keywords, "#{img.tags}"&lt;br /&gt;                    xml.media :thumbnail, \&lt;br /&gt;                        :width =&gt; "#{img.thumbnail.widh}", \&lt;br /&gt;                        :height =&gt; "#{img.thumbnail.height}", \&lt;br /&gt;                        :url =&gt; "#{img.thumbnail.url}"&lt;br /&gt;                end&lt;br /&gt;            end&lt;br /&gt;        end&lt;br /&gt;&lt;br /&gt;    end&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 31 May 2007 09:17:59 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4083</guid>
      <author>crux (dirk luesebrink)</author>
    </item>
    <item>
      <title>test</title>
      <link>http://snippets.dzone.com/posts/show/4082</link>
      <description>// description of your code here&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;warum geht das nicht?&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 31 May 2007 09:17:18 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4082</guid>
      <author>crux (dirk luesebrink)</author>
    </item>
  </channel>
</rss>
