We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › RSS feed & processing
Page Index Toggle Pages: 1
RSS feed & processing (Read 2957 times)
RSS feed & processing
Jul 8th, 2007, 5:01pm
 
hello,

i'm an "almost-newbie-processing-user".
i'm looking for a way to use strings from rss feeds. i look around and i don't find an answer to this problem.
is there someone to help me ?
Re: RSS feed & processing
Reply #1 - Jul 8th, 2007, 5:42pm
 
Hi docile,

Wikipedia says: "RSS formats are specified using XML, a generic specification for the creation of data formats."

I say: RSS is XML.

Processing comes with a XML library.

Check out XML library examples:
http://processing.org/reference/libraries/xml/index.html
Re: RSS feed & processing
Reply #2 - Jul 8th, 2007, 7:29pm
 
thank you very much, bas.

with this library, the xml is read from a local file. what i'm looking for is the ability to read xml from an url.
By example : "http://processing.org/updates.xml"

i'm not really sure to understand the way to use this library, maybe i'm wrong ?
Re: RSS feed & processing
Reply #3 - Jul 8th, 2007, 8:17pm
 
Yeah, instead of a local file name enter the url Smiley

Code:

import processing.xml.*;

XMLElement xml;

void setup() {
 size(200, 200);
 xml = new XMLElement(this, "http://processing.org/updates.xml");
}


If you're having trouble understanding and working libraries, classes and objects you could try to familiarize yourself with those first.
Re: RSS feed & processing
Reply #4 - Jul 8th, 2007, 8:27pm
 
ok, thank you very much Bas.

i will take a look.
Page Index Toggle Pages: 1