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 & HelpPrograms › RSS Movement
Page Index Toggle Pages: 1
RSS Movement (Read 457 times)
RSS Movement
Mar 22nd, 2010, 12:50pm
 
Hi I dont know if I am posting this in the right place, but wht I am trying to do is get and RSS feed from uni that has multiple data within it (an array), I am wanting to use this information to make something visual on screen for a uni project but at the moment I am gettin a bit stuck with the coding, I can get the code to work with certain rss feeds that only have one piece of data in them but I can not get the the one with multple data working.

Tis is what i have so far:

Code:

import processing.xml.*;

void setup() {
String url = "://arch-os.scce.plymouth.ac.uk/bms_data.rss?source=vis_lobby_a";

XMLElement xmlFeed = new XMLElement(this, url);

XMLElement[] Data = xmlFeed.getChildren("channel/item/description");

for (int i = 0; i < Data.length; i++) {
println(Data[i].getContent());
}
}


Thank you in advance for any help.
Page Index Toggle Pages: 1