import processing.xml.*; String cnnWord = ""; String bbcWord = ""; String [] cnnOutput = {""}; String [] bbcOutput = {""}; PFont fcnn; PFont fbbc; char[] letters; void setup(){ size(800, 600, P3D); fcnn=loadFont ("Bauhaus93-48.vlw"); textFont(fcnn, 25); background(20, 67, 100); // Download RSS feed of news stories from cnn.com String cnnUrl = "http://rss.cnn.com/rss/cnn_topstories.rss"; XMLElement cnnRss = new XMLElement(this, cnnUrl); // Get the element from inside XMLElement cnnDesc = cnnRss.getChild("channel/description"); println(cnnDesc.getContent()); // Get all elements XMLElement[] cnnLinks = cnnRss.getChildren("channel/item/title"); for (int i = 0; i < cnnLinks.length; i++) { println(cnnLinks[i].getContent()); cnnWord = cnnLinks[i].getContent(); cnnOutput = append (cnnOutput, " * "); cnnOutput = append (cnnOutput, cnnWord); } // Download RSS feed of news stories from cnn.com String bbcUrl = "http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml"; XMLElement bbcRss = new XMLElement(this, bbcUrl); // Get the element from inside XMLElement bbcDesc = bbcRss.getChild("channel/description"); println(bbcDesc.getContent()); // Get all elements XMLElement[] bbcLinks = bbcRss.getChildren("channel/item/title"); for (int i = 0; i < bbcLinks.length; i++) { println(bbcLinks[i].getContent()); bbcWord = bbcLinks[i].getContent(); bbcOutput = append (cnnOutput, " * "); bbcOutput = append (cnnOutput, bbcWord); } } void draw(){ pushMatrix(); translate(200, 100); for (int i =0; i