<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: ASP (VBScript) RSS reader/writer class</title>
	<atom:link href="http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/</link>
	<description>hot talk about web development</description>
	<lastBuildDate>Tue, 10 May 2011 13:11:20 +0200</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Michal</title>
		<link>http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-11251</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Wed, 21 Oct 2009 07:09:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-11251</guid>
		<description>Lee, as far as I can see the class does not parse multiple categories when reading a feed. You would need to extend it.</description>
		<content:encoded><![CDATA[<p>Lee, as far as I can see the class does not parse multiple categories when reading a feed. You would need to extend it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Mathewson</title>
		<link>http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-11249</link>
		<dc:creator>Mike Mathewson</dc:creator>
		<pubDate>Wed, 21 Oct 2009 05:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-11249</guid>
		<description>Lee -
I don&#039;t do anything with the category field so I haven&#039;t worked on that problem. I was only able to figure out my last problem by scouring over code samples that I could dig up on the web. In my searching I don&#039;t recall seeing anything that wold help you - sorry.</description>
		<content:encoded><![CDATA[<p>Lee -<br />
I don&#8217;t do anything with the category field so I haven&#8217;t worked on that problem. I was only able to figure out my last problem by scouring over code samples that I could dig up on the web. In my searching I don&#8217;t recall seeing anything that wold help you &#8211; sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Allan</title>
		<link>http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-11243</link>
		<dc:creator>Lee Allan</dc:creator>
		<pubDate>Tue, 20 Oct 2009 21:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-11243</guid>
		<description>Thank you for posting this. It has been very helpful.
I am having trouble with a feed that has an array of category fields for each -item.
I have tried adding an array definition to the dictionary, and that did not work. Also tried to enumerate the r.items an could not get that to work. I obviously don&#039;t know how to reference the child array of item-&gt;category. Do you have a suggestion?</description>
		<content:encoded><![CDATA[<p>Thank you for posting this. It has been very helpful.<br />
I am having trouble with a feed that has an array of category fields for each -item.<br />
I have tried adding an array definition to the dictionary, and that did not work. Also tried to enumerate the r.items an could not get that to work. I obviously don&#8217;t know how to reference the child array of item-&gt;category. Do you have a suggestion?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Mathewson</title>
		<link>http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-11210</link>
		<dc:creator>Mike Mathewson</dc:creator>
		<pubDate>Fri, 16 Oct 2009 03:16:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-11210</guid>
		<description>Figured it out, for those that are interested here&#039;s the solution:

RSS.asp in the readATOM section

replace this line:

.link = getAttribute(n, &quot;link&quot;, &quot;href&quot;)

with:

.link = getAttribute(n, &quot;link[@rel=&#039;alternate&#039;]&quot;, &quot;href&quot;)

Now when ATOM feeds are read, the returned link will be the link back to the URL of the item instead of the ATOM feed file.</description>
		<content:encoded><![CDATA[<p>Figured it out, for those that are interested here&#8217;s the solution:</p>
<p>RSS.asp in the readATOM section</p>
<p>replace this line:</p>
<p>.link = getAttribute(n, &#8220;link&#8221;, &#8220;href&#8221;)</p>
<p>with:</p>
<p>.link = getAttribute(n, &#8220;link[@rel='alternate']&#8220;, &#8220;href&#8221;)</p>
<p>Now when ATOM feeds are read, the returned link will be the link back to the URL of the item instead of the ATOM feed file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Mathewson</title>
		<link>http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-11193</link>
		<dc:creator>Mike Mathewson</dc:creator>
		<pubDate>Wed, 14 Oct 2009 05:34:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-11193</guid>
		<description>Michael -

I’m using your ASP RSS Reader and I’ve run into a little problem. When reading ATOM feeds there are multiple parameters for each item. I’m tring to get the link that is directed back to the item which has an attribute rel=’alternate’. Unfortunately the script pulls up the first LINK which is typically ‘rel=self’ which is a link back to the feed file. I’ve tried playing around with your script but can’t figure out a way to access this alternate link. Do you know if there is a way or do you have any other tools you can direct me to? Thank you very much for your help – Mike</description>
		<content:encoded><![CDATA[<p>Michael -</p>
<p>I’m using your ASP RSS Reader and I’ve run into a little problem. When reading ATOM feeds there are multiple parameters for each item. I’m tring to get the link that is directed back to the item which has an attribute rel=’alternate’. Unfortunately the script pulls up the first LINK which is typically ‘rel=self’ which is a link back to the feed file. I’ve tried playing around with your script but can’t figure out a way to access this alternate link. Do you know if there is a way or do you have any other tools you can direct me to? Thank you very much for your help – Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian T</title>
		<link>http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-11100</link>
		<dc:creator>Brian T</dc:creator>
		<pubDate>Fri, 11 Sep 2009 14:12:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-11100</guid>
		<description>can you show the code for the demo using ajax and the rss reader? its hard to see what is passed back in the code with just the output :) many thanks - great code too</description>
		<content:encoded><![CDATA[<p>can you show the code for the demo using ajax and the rss reader? its hard to see what is passed back in the code with just the output :) many thanks &#8211; great code too</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal</title>
		<link>http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-10858</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Tue, 21 Jul 2009 04:04:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-10858</guid>
		<description>@Danny: adding the base url should be not that big deal. However, I am really busy for the next time ... If you have some time you could extend it and I would release it as a new version. how does that sound? greets</description>
		<content:encoded><![CDATA[<p>@Danny: adding the base url should be not that big deal. However, I am really busy for the next time &#8230; If you have some time you could extend it and I would release it as a new version. how does that sound? greets</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-10857</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Mon, 20 Jul 2009 20:32:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-10857</guid>
		<description>Michal,

Great job on this work. Work smoothly on most RSS.
However, I tested on one RSS at your demo page (http://www.grafix.at/webdevbros/RSS/), putting this:

http://www.maximumpc.com/articles/all/feed

The images aren&#039;t showing up.

Do you think it will be easy to add base url in the next version of your RSS class?</description>
		<content:encoded><![CDATA[<p>Michal,</p>
<p>Great job on this work. Work smoothly on most RSS.<br />
However, I tested on one RSS at your demo page (<a href="http://www.grafix.at/webdevbros/RSS/" rel="nofollow">http://www.grafix.at/webdevbros/RSS/</a>), putting this:</p>
<p><a href="http://www.maximumpc.com/articles/all/feed" rel="nofollow">http://www.maximumpc.com/articles/all/feed</a></p>
<p>The images aren&#8217;t showing up.</p>
<p>Do you think it will be easy to add base url in the next version of your RSS class?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal</title>
		<link>http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-9585</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Tue, 18 Nov 2008 03:00:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-9585</guid>
		<description>Urs i would suggest you make use of the sortedlist from .net inside ASP (check http://stackoverflow.com/questions/156436/sorting-a-collection-in-classic-asp for details( and sort the items by date .. then you create another RSS feed. should work fine. some pseudocode

[asp]
&#039;reading feeds and adding them to the sorted list
&#039;so they get sorted automatically
set list = server.createObject(&quot;System.Collections.Sortedlist&quot;)
set feed1 = new RSS
feed1.url = &quot;http://....&quot;
if not feed1.failed then
  for each i in feed1.items.items
    list.add i.publishedDate, i
  next
end if
set feed2 = new RSS
feed2.url = &quot;http://....&quot;
if not feed2.failed then
  for each i in feed2.items.items
    list.add i.publishedDate, i
  next
end if

&#039;creating our final feed
set feed = new RSS
for i = 0 to list.count - 1
  feed.addItem(list.getByIndex(i))
next
&#039;write the feed to the respone
feed.generate(&quot;RSS2.0&quot;, empty).save(response)
&#039;alternatively you can write the feed to a file
&#039;feed.generate &quot;RSS2.0&quot;, &quot;/feed/feed.xml&quot;
[/asp]

I haven tried the code so i am not sure if it works :) It could be that the sorted list cannot store ASP &quot;objects&quot;. in this case you would need to create a lookup dictionary....</description>
		<content:encoded><![CDATA[<p>Urs i would suggest you make use of the sortedlist from .net inside ASP (check <a href="http://stackoverflow.com/questions/156436/sorting-a-collection-in-classic-asp">http://stackoverflow.com/questions/156436/sorting-a-collection-in-classic-asp</a> for details( and sort the items by date .. then you create another RSS feed. should work fine. some pseudocode</p>
<div class="igBar"><span id="lasp-1"><a href="#" onclick="javascript:showCodeTxt('asp-1'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ASP:</span>
<div id="asp-1">
<div class="asp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">'reading feeds and adding them to the sorted list</span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">'so they get sorted automatically</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#990099; font-weight:bold;">set</span> list = <span style="color:#990099; font-weight:bold;">server</span>.<span style="color:#330066;">createObject</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">"System.Collections.Sortedlist"</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#990099; font-weight:bold;">set</span> feed1 = <span style="color:#0000FF; font-weight:bold;">new</span> RSS</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">feed1.<span style="color:#9900CC;">url</span> = <span style="color:#CC0000;">"http://...."</span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#990099; font-weight:bold;">if</span> <span style="color:#990099; font-weight:bold;">not</span> feed1.<span style="color:#9900CC;">failed</span> <span style="color:#990099; font-weight:bold;">then</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#990099; font-weight:bold;">for</span> <span style="color:#990099; font-weight:bold;">each</span> i <span style="color:#990099; font-weight:bold;">in</span> feed1.<span style="color:#330066;">items</span>.<span style="color:#330066;">items</span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; list.<span style="color:#330066;">add</span> i.<span style="color:#9900CC;">publishedDate</span>, i</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#990099; font-weight:bold;">next</span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#990099; font-weight:bold;">end</span> <span style="color:#990099; font-weight:bold;">if</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#990099; font-weight:bold;">set</span> feed2 = <span style="color:#0000FF; font-weight:bold;">new</span> RSS</div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">feed2.<span style="color:#9900CC;">url</span> = <span style="color:#CC0000;">"http://...."</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#990099; font-weight:bold;">if</span> <span style="color:#990099; font-weight:bold;">not</span> feed2.<span style="color:#9900CC;">failed</span> <span style="color:#990099; font-weight:bold;">then</span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#990099; font-weight:bold;">for</span> <span style="color:#990099; font-weight:bold;">each</span> i <span style="color:#990099; font-weight:bold;">in</span> feed2.<span style="color:#330066;">items</span>.<span style="color:#330066;">items</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; list.<span style="color:#330066;">add</span> i.<span style="color:#9900CC;">publishedDate</span>, i</div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#990099; font-weight:bold;">next</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#990099; font-weight:bold;">end</span> <span style="color:#990099; font-weight:bold;">if</span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">'creating our final feed</span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#990099; font-weight:bold;">set</span> feed = <span style="color:#0000FF; font-weight:bold;">new</span> RSS</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#990099; font-weight:bold;">for</span> i = <span style="color:#800000;color:#800000;">0</span> <span style="color:#990099; font-weight:bold;">to</span> list.<span style="color:#330066;">count</span> - <span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; feed.<span style="color:#9900CC;">addItem</span><span style="color:#006600; font-weight:bold;">&#40;</span>list.<span style="color:#9900CC;">getByIndex</span><span style="color:#006600; font-weight:bold;">&#40;</span>i<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#990099; font-weight:bold;">next</span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">'write the feed to the respone</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">feed.<span style="color:#9900CC;">generate</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">"RSS2.0"</span>, empty<span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">save</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#990099; font-weight:bold;">response</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">'alternatively you can write the feed to a file</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">'feed.generate &quot;RSS2.0&quot;, &quot;/feed/feed.xml&quot; </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>I haven tried the code so i am not sure if it works :) It could be that the sorted list cannot store ASP "objects". in this case you would need to create a lookup dictionary....</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Urs</title>
		<link>http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-9584</link>
		<dc:creator>Urs</dc:creator>
		<pubDate>Mon, 17 Nov 2008 15:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2007/07/01/asp-vbscript-rss-readerwriter-class/#comment-9584</guid>
		<description>Great work - but a small question back to the first comment:

i hav2 &quot;set RSSFeed1 = new RSS&quot; and &quot;Set RSSFeed2 = new RSS&quot;

any suggestion how i &quot;merge&quot; them into on and sort them by date?

Only solution in my mind: put every child of the xml in one array/new xml / Database  and then sort the full array. But this will take a lot of processing time ... ?</description>
		<content:encoded><![CDATA[<p>Great work - but a small question back to the first comment:</p>
<p>i hav2 "set RSSFeed1 = new RSS" and "Set RSSFeed2 = new RSS"</p>
<p>any suggestion how i "merge" them into on and sort them by date?</p>
<p>Only solution in my mind: put every child of the xml in one array/new xml / Database  and then sort the full array. But this will take a lot of processing time ... ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

