<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Shawson&#039;s Code Blog &#187; rss</title>
	<atom:link href="http://codeblog.shawson.co.uk/tag/rss/feed/" rel="self" type="application/rss+xml" />
	<link>http://codeblog.shawson.co.uk</link>
	<description>development notes for my failing memory</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:00:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Scott Klueppel&#8217;s Blog &#8211; Error Log RSS Feed</title>
		<link>http://codeblog.shawson.co.uk/scott-klueppels-blog-error-log-rss-feed/</link>
		<comments>http://codeblog.shawson.co.uk/scott-klueppels-blog-error-log-rss-feed/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 09:38:07 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[error handling]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[syndication]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=356</guid>
		<description><![CDATA[Sam pointed me to an article showing a really nice way to deal with error logging;  as opposed to filling a debug mail box with 100&#8242;s of mails that will soon become unmanageably large, have the error&#8217;s logged to a database, then published via RSS! Scott Klueppel&#8217;s Blog &#8211; Error Log RSS Feed. Related posts:WCF [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/wcf-404-3-errors/' rel='bookmark' title='WCF 404.3 Errors'>WCF 404.3 Errors</a></li>
<li><a href='http://codeblog.shawson.co.uk/my-shiny-new-blog/' rel='bookmark' title='My shiny new blog'>My shiny new blog</a></li>
<li><a href='http://codeblog.shawson.co.uk/syndicating-to-rss-using-the-build-in-net-syndicationfeed-classes/' rel='bookmark' title='Syndicating to RSS using the built in .net SyndicationFeed classes'>Syndicating to RSS using the built in .net SyndicationFeed classes</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>Sam pointed me to an article showing a really nice way to deal with error logging;  as opposed to filling a debug mail box with 100&#8242;s of mails that will soon become unmanageably large, have the error&#8217;s logged to a database, then published via RSS!</p>
<p><a href="http://offroadcoder.com/2008/08/31/ErrorLogRSSFeed.aspx">Scott Klueppel&#8217;s Blog &#8211; Error Log RSS Feed</a>.</p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/wcf-404-3-errors/' rel='bookmark' title='WCF 404.3 Errors'>WCF 404.3 Errors</a></li>
<li><a href='http://codeblog.shawson.co.uk/my-shiny-new-blog/' rel='bookmark' title='My shiny new blog'>My shiny new blog</a></li>
<li><a href='http://codeblog.shawson.co.uk/syndicating-to-rss-using-the-build-in-net-syndicationfeed-classes/' rel='bookmark' title='Syndicating to RSS using the built in .net SyndicationFeed classes'>Syndicating to RSS using the built in .net SyndicationFeed classes</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/scott-klueppels-blog-error-log-rss-feed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Syndicating to RSS using the built in .net SyndicationFeed classes</title>
		<link>http://codeblog.shawson.co.uk/syndicating-to-rss-using-the-build-in-net-syndicationfeed-classes/</link>
		<comments>http://codeblog.shawson.co.uk/syndicating-to-rss-using-the-build-in-net-syndicationfeed-classes/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 11:31:20 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[C#.net]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[extension methods]]></category>
		<category><![CDATA[generic list]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[syndication]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=314</guid>
		<description><![CDATA[My boss recently showed me a pretty handy bunch of classes for generating RSS and ATOM feeds, all built into dot net. Start by adding a new reference to your project; System.Services.Web. The SyndicationFeed class holds all the data about your feed and lets you spit everything out in a number of different formats (RSS2.0, [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/rss-xslt/' rel='bookmark' title='RSS XSLT'>RSS XSLT</a></li>
<li><a href='http://codeblog.shawson.co.uk/entity-framework-4-1-code-first-with-one-to-many-relationship-code-example/' rel='bookmark' title='Entity Framework 4.1 Code First (With One to Many relationship) Code Example'>Entity Framework 4.1 Code First (With One to Many relationship) Code Example</a></li>
<li><a href='http://codeblog.shawson.co.uk/asp-net-aspx-pages-posting-back-to-the-wrong-url-when-using-server-rewrite/' rel='bookmark' title='ASP.net aspx pages posting back to the wrong URL when using Server Rewrite'>ASP.net aspx pages posting back to the wrong URL when using Server Rewrite</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>My boss recently showed me a pretty handy bunch of classes for generating RSS and ATOM feeds, all built into dot net.</p>
<p>Start by adding a new reference to your project; System.Services.Web.</p>
<p>The SyndicationFeed class holds all the data about your feed and lets you spit everything out in a number of different formats (RSS2.0, ATOM1.0)- each item in the feed is held in a generic list of SyndicationItem objects.  As I work for a publishers, I was creating an RSS feed of coming soon books so I added an extension method to my book class- ToSyndicationItem();</p>
<pre class="brush: csharp">
public static SyndicationItem ToSyndicationItem(this Book book)
{
    return new SyndicationItem(book.CoverTitle + &quot; &quot; + book.Subtitle, book.Description, new Uri(book.GetURL()))
    {
        Summary = new TextSyndicationContent(book.DescriptionShort, TextSyndicationContentKind.Plaintext),
        Id = book.Id.ToString(),
        LastUpdatedTime = book.InsertedDate
    };
}
</pre>
<p>This allows me to use all the standard select methods I already in my book class, to also populate my RSS feed.  So to create the feed all I need do in my RSS.ashx handler file is;</p>
<pre class="brush: csharp">
List&lt;Book&gt; books = Book.GetBookPublishedBetween(DateTime.Now,DateTime.Now.AddDays( int.Parse( GroupConstants.ComingSoonMaxDays)));
List&lt;SyndicationItem&gt; syndicationItems = new List&lt;SyndicationItem&gt;();
foreach (Book book in books)
    syndicationItems.Add(book.ToSyndicationItem());

feed = new SyndicationFeed(syndicationItems)
{
    Title = new TextSyndicationContent(&quot;Coming Soon Titles&quot;),
    Description = new TextSyndicationContent(&quot;Forthcoming publications.&quot;),
    BaseUri = new Uri(LinkHelper.GetBaseUrl())
};

var output = new StringWriter();
var writer = new XmlTextWriter(output);

new Rss20FeedFormatter(feed).WriteTo(writer);

context.Response.ContentType = &quot;application/rss+xml&quot;;
context.Response.Write(output.ToString());
</pre>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/rss-xslt/' rel='bookmark' title='RSS XSLT'>RSS XSLT</a></li>
<li><a href='http://codeblog.shawson.co.uk/entity-framework-4-1-code-first-with-one-to-many-relationship-code-example/' rel='bookmark' title='Entity Framework 4.1 Code First (With One to Many relationship) Code Example'>Entity Framework 4.1 Code First (With One to Many relationship) Code Example</a></li>
<li><a href='http://codeblog.shawson.co.uk/asp-net-aspx-pages-posting-back-to-the-wrong-url-when-using-server-rewrite/' rel='bookmark' title='ASP.net aspx pages posting back to the wrong URL when using Server Rewrite'>ASP.net aspx pages posting back to the wrong URL when using Server Rewrite</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/syndicating-to-rss-using-the-build-in-net-syndicationfeed-classes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

