<?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: Code: Read RSS feeds in Processing</title>
	<atom:link href="http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/feed/" rel="self" type="application/rss+xml" />
	<link>http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/</link>
	<description>Computational aesthetics and programming for artists and designers.</description>
	<lastBuildDate>Thu, 11 Mar 2010 06:10:57 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: anon</title>
		<link>http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/comment-page-1/#comment-199422</link>
		<dc:creator>anon</dc:creator>
		<pubDate>Fri, 27 Nov 2009 00:35:04 +0000</pubDate>
		<guid isPermaLink="false">http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/#comment-199422</guid>
		<description>you may want to look at vtd-xml, the latest and most advanced xml processing api

&lt;a href=&quot;http://vtd-xml.sf.net&quot; rel=&quot;nofollow&quot;&gt;vtd-xml&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>you may want to look at vtd-xml, the latest and most advanced xml processing api</p>
<p><a href="http://vtd-xml.sf.net" rel="nofollow">vtd-xml</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marius watz</title>
		<link>http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/comment-page-1/#comment-66069</link>
		<dc:creator>marius watz</dc:creator>
		<pubDate>Fri, 25 Apr 2008 08:21:49 +0000</pubDate>
		<guid isPermaLink="false">http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/#comment-66069</guid>
		<description>Sorry, it&#039;s a problem with the code formatting as it appears in Wordpress, still having trouble with it. It&#039;s bizarre how hard it seems to be to get WordPress not to mess with code snippets... I recommend that you download the &lt;a href=&quot;http://workshop.evolutionzone.com/2008/04/12/code-form-code-library-0001-google-code-repository/&quot; rel=&quot;nofollow&quot;&gt;Code &amp; Form code library 0001&lt;/a&gt;, which includes the Feedparser example.</description>
		<content:encoded><![CDATA[<p>Sorry, it&#8217;s a problem with the code formatting as it appears in Wordpress, still having trouble with it. It&#8217;s bizarre how hard it seems to be to get WordPress not to mess with code snippets&#8230; I recommend that you download the <a href="http://workshop.evolutionzone.com/2008/04/12/code-form-code-library-0001-google-code-repository/" rel="nofollow">Code &#038; Form code library 0001</a>, which includes the Feedparser example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fkid</title>
		<link>http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/comment-page-1/#comment-65873</link>
		<dc:creator>fkid</dc:creator>
		<pubDate>Wed, 23 Apr 2008 20:10:25 +0000</pubDate>
		<guid isPermaLink="false">http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/#comment-65873</guid>
		<description>ive got a problem with this line:
&quot;
for(int i=0; i
&quot;
inside:
&quot;
// print feed entries
for(int i=0; i
println(i+&quot;: &quot;+feed.entry[i]);
&quot;

error: expecting SEMI, found &#039;println&#039;

really cant figure out, whats the problem...

thanks anyway</description>
		<content:encoded><![CDATA[<p>ive got a problem with this line:<br />
&#8221;<br />
for(int i=0; i<br />
&#8221;<br />
inside:<br />
&#8221;<br />
// print feed entries<br />
for(int i=0; i<br />
println(i+&#8221;: &#8220;+feed.entry[i]);<br />
&#8221;</p>
<p>error: expecting SEMI, found &#8216;println&#8217;</p>
<p>really cant figure out, whats the problem&#8230;</p>
<p>thanks anyway</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/comment-page-1/#comment-60562</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Thu, 03 Apr 2008 23:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/#comment-60562</guid>
		<description>hey, i can&#039;t compile your code, it seems to be missing something, could u post it again ou make a .zip? thanks in advance,

Paul</description>
		<content:encoded><![CDATA[<p>hey, i can&#8217;t compile your code, it seems to be missing something, could u post it again ou make a .zip? thanks in advance,</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marius watz</title>
		<link>http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/comment-page-1/#comment-42332</link>
		<dc:creator>marius watz</dc:creator>
		<pubDate>Sun, 09 Dec 2007 05:50:12 +0000</pubDate>
		<guid isPermaLink="false">http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/#comment-42332</guid>
		<description>Thanks for the code, Anthony. For some reason my code coloring plugin doesn&#039;t work on text from comments, sorry about that.</description>
		<content:encoded><![CDATA[<p>Thanks for the code, Anthony. For some reason my code coloring plugin doesn&#8217;t work on text from comments, sorry about that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony Starks</title>
		<link>http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/comment-page-1/#comment-41901</link>
		<dc:creator>Anthony Starks</dc:creator>
		<pubDate>Wed, 05 Dec 2007 21:24:16 +0000</pubDate>
		<guid isPermaLink="false">http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/#comment-41901</guid>
		<description>This code uses the built-in XML classes to parse OPML -&gt; RSS/Atom feeds

&lt;code&gt;/*
* opmlparse -- parse a OPML file, extracting the Feed URLs,
* open each feed URL, display feed name, and titles
*
*  Anthony Starks, ajstarks --at-- gmail.com
*/

import processing.xml.*;
 
void setup() {
  String url = &quot;http://www.toptensources.com//topten/Jeremy-Zawodnys-Top-10/?display=.o pml&quot;;
  String fu;
  String ftitle;
  XMLElement titles[];
  XMLElement feed;
  XMLElement opml = new XMLElement(this, url);
  XMLElement[] outline = opml.getChildren(&quot;body/outline&quot;);
 
  for (int i = 0; i &lt; outline.length; i++) {
    fu = outline[i].getStringAttribute(&quot;xmlUrl&quot;);
    print(fu);
 
    try {  
 feed = new XMLElement(this, fu);  
 println(&quot;..Ok&quot;);
 XMLElement type = feed.getChild(0);
 if (type.getName().equals(&quot;channel&quot;))   { /* RSS */
   ftitle = type.getChild(&quot;title&quot;).getContent();
   titles = type.getChildren(&quot;item/title&quot;);
 }
 else {
   ftitle = feed.getChild(&quot;title&quot;).getContent();
   titles = feed.getChildren(&quot;entry/title&quot;);  /* Atom */
 }
 println(ftitle);
 
 for (int nt=0; nt &lt; titles.length; nt++) {
   println(&quot;  &quot; + titles[nt].getContent());
 }
    }  
    catch(Exception e){
 println(&quot;..Loading Failed&quot;);
    }
  }
 
}&lt;/code&gt; </description>
		<content:encoded><![CDATA[<p>This code uses the built-in XML classes to parse OPML -&gt; RSS/Atom feeds</p>
<p><code>/*<br />
* opmlparse -- parse a OPML file, extracting the Feed URLs,<br />
* open each feed URL, display feed name, and titles<br />
*<br />
*  Anthony Starks, ajstarks --at-- gmail.com<br />
*/</p>
<p>import processing.xml.*;</p>
<p>void setup() {<br />
  String url = "http://www.toptensources.com//topten/Jeremy-Zawodnys-Top-10/?display=.o pml";<br />
  String fu;<br />
  String ftitle;<br />
  XMLElement titles[];<br />
  XMLElement feed;<br />
  XMLElement opml = new XMLElement(this, url);<br />
  XMLElement[] outline = opml.getChildren("body/outline");</p>
<p>  for (int i = 0; i < outline.length; i++) {<br />
    fu = outline[i].getStringAttribute("xmlUrl");<br />
    print(fu);</p>
<p>    try {<br />
 feed = new XMLElement(this, fu);<br />
 println("..Ok");<br />
 XMLElement type = feed.getChild(0);<br />
 if (type.getName().equals("channel"))   { /* RSS */<br />
   ftitle = type.getChild("title").getContent();<br />
   titles = type.getChildren("item/title");<br />
 }<br />
 else {<br />
   ftitle = feed.getChild("title").getContent();<br />
   titles = feed.getChildren("entry/title");  /* Atom */<br />
 }<br />
 println(ftitle);</p>
<p> for (int nt=0; nt < titles.length; nt++) {<br />
   println("  " + titles[nt].getContent());<br />
 }<br />
    }<br />
    catch(Exception e){<br />
 println("..Loading Failed");<br />
    }<br />
  }</p>
<p>}</code></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2007-10-06 &#171; Zero influence</title>
		<link>http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/comment-page-1/#comment-36000</link>
		<dc:creator>links for 2007-10-06 &#171; Zero influence</dc:creator>
		<pubDate>Sat, 06 Oct 2007 00:39:28 +0000</pubDate>
		<guid isPermaLink="false">http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/#comment-36000</guid>
		<description>[...] Code &amp; form » Code: Read RSS feeds in Processing The XML class built into Processing is too basic to handle feeds, it seems. To remedy the situation I&#8217;ve cooked up a quick hack using the ROME library for RSS / Atom syndication. (tags: code processing rss reader) [...]</description>
		<content:encoded><![CDATA[<p>[...] Code &amp; form » Code: Read RSS feeds in Processing The XML class built into Processing is too basic to handle feeds, it seems. To remedy the situation I&#8217;ve cooked up a quick hack using the ROME library for RSS / Atom syndication. (tags: code processing rss reader) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyler Weir</title>
		<link>http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/comment-page-1/#comment-35261</link>
		<dc:creator>Tyler Weir</dc:creator>
		<pubDate>Wed, 26 Sep 2007 15:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://workshop.evolutionzone.com/2007/09/24/code-read-rss-feed-in-processing/#comment-35261</guid>
		<description>Thanks for this, I started looking into ROME for the same reason, but never had time to finish anything of use.  This is great, cheers.</description>
		<content:encoded><![CDATA[<p>Thanks for this, I started looking into ROME for the same reason, but never had time to finish anything of use.  This is great, cheers.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
