<?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>Ros &#38; Pete &#187; IT, Code and other geeky stuff</title>
	<atom:link href="http://www.rosandpete.co.uk/category/it-code-and-other-geeky-stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rosandpete.co.uk</link>
	<description>just our little space in the world</description>
	<lastBuildDate>Sun, 21 Jun 2009 15:34:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>RSS Feeds in a vb.net desktop application&#8230;</title>
		<link>http://www.rosandpete.co.uk/2008/rss-feeds-in-a-vbnet-desktop-application/</link>
		<comments>http://www.rosandpete.co.uk/2008/rss-feeds-in-a-vbnet-desktop-application/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 09:37:08 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[IT, Code and other geeky stuff]]></category>
		<category><![CDATA[Pete Matthews]]></category>

		<guid isPermaLink="false">http://www.rosandpete.co.uk/?p=23</guid>
		<description><![CDATA[Ok so i thought it would be a good idea to write an RSS feed reading into the project that im currently working on.
Based on this i found the following code:

Public Shared Function ProcessRSS(ByVal rssURL As String, ByVal feed As String) As String
Dim request As WebRequest = WebRequest.Create(rssURL)
Dim response As WebResponse = request.GetResponse()
Dim sb As [...]]]></description>
			<content:encoded><![CDATA[<p>Ok so i thought it would be a good idea to write an RSS feed reading into the project that im currently working on.</p>
<p>Based on <a href="http://forums.asp.net/t/1160518.aspx">this</a> i found the following code:</p>
<div><code><br />
Public Shared Function ProcessRSS(ByVal rssURL As String, ByVal feed As String) As String<br />
Dim request As WebRequest = WebRequest.Create(rssURL)<br />
Dim response As WebResponse = request.GetResponse()<br />
Dim sb As New StringBuilder("")<br />
Dim rssStream As Stream = response.GetResponseStream()<br />
Dim rssDoc As New XmlDocument()<br />
rssDoc.Load(rssStream)<br />
Dim rssItems As XmlNodeList = rssDoc.SelectNodes("rss/channel/item")</code></div>
<div><code>Dim title As String = ""<br />
Dim link As String = ""<br />
Dim upperlimit As Integer = rssItems.Count<br />
If upperlimit &gt; 5 Then<br />
upperlimit = 5<br />
End If<br />
If upperlimit &gt; 0 Then<br />
sb.Append("" + feed + "</code></div>
<p><code></p>
<ul>")<br />
Dim i As Integer = 0<br />
While i &lt; upperlimit<br />
Dim rssDetail As XmlNode<br />
rssDetail = rssItems.Item(i).SelectSingleNode("title")<br />
If Not IsNothing(rssDetail) Then<br />
title = rssDetail.InnerText<br />
Else<br />
title = ""<br />
End If</ul>
<p>rssDetail = rssItems.Item(i).SelectSingleNode("link")<br />
If Not IsNothing(rssDetail) Then<br />
link = rssDetail.InnerText<br />
Else<br />
link = ""<br />
End If<br />
sb.Append("</p>
<li><a href="&quot; + link + &quot;" target="_blank">" + title + "</a></li>
<p>")<br />
i += 1<br />
End While<br />
sb.Append("")<br />
End If<br />
Return sb.ToString()</p>
<p>this is all good and seams to work.. except i needed to add a proxy logon:<br />
<code>request.Proxy.Credentials = CredentialCache.DefaultCredentials</code></p>
<p> </p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rosandpete.co.uk/2008/rss-feeds-in-a-vbnet-desktop-application/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>oooo New and Shiney</title>
		<link>http://www.rosandpete.co.uk/2008/oooo-new-and-shiney/</link>
		<comments>http://www.rosandpete.co.uk/2008/oooo-new-and-shiney/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 17:33:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT, Code and other geeky stuff]]></category>
		<category><![CDATA[Pete Matthews]]></category>
		<category><![CDATA[Ros Matthews]]></category>
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://www.rosandpete.co.uk/?p=4</guid>
		<description><![CDATA[Im still trying to figure out whats going on with this wordpress thing, so please bare with me.
It may take me a few days to get all of the piccys back up aswell
]]></description>
			<content:encoded><![CDATA[<p>Im still trying to figure out whats going on with this wordpress thing, so please bare with me.</p>
<p>It may take me a few days to get all of the piccys back up aswell</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rosandpete.co.uk/2008/oooo-new-and-shiney/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
