XML breakdown from an online source help
in
Programming Questions
•
2 years ago
Im using processing to break down an rss feed i know you can break it down if it was a file in data folder but i keep getting null value back when i try to get children/content.
heres my code so far
XMLElement xml;
void setup() {
size(200, 200);
xml = new XMLElement(this, "http://feeds.bbci.co.uk/news/rss.xml");
println(xml);
XMLElement[] kids = xml.getChildren();
for (int i=0; i < kids.length; i++) {
String site = kids[i].getContent();
println(site);
}
}
1