Processing

Schedule

Date Task
Feb 6 Basic Tutorials
Feb 7 contd
Feb 8 Draft for the project
Feb 9 contd
cell-content cell-content
cell-content cell-content
cell-content cell-content
cell-content cell-content
cell-content cell-content
cell-content cell-content
cell-content cell-content
cell-content cell-content
cell-content cell-content
cell-content cell-content

Design / Idea

Links

Data Visualization: Modern Approaches

Code

Here is the XML code for parsing the XML file from top500.org

/* Feb 6 */
import processing.xml.*;

XMLElement xml;

void setup() {
  size(200, 200);
  xml = new XMLElement(this, "sites.xml");
  int numSites = xml.getChildCount();
  for (int i = 0; i < numSites; i++) {
    XMLElement kid = xml.getChild(i);
    XMLElement computerName = kid.getChild(3);        //The values 3 and 5 refer to the attributes Computer Name and 
                                            // Max Speed and we get the values 
    println(computerName.getContent());             //by looking at the XML File
    XMLElement rMax = kid.getChild(5);
    println(rMax.getContent());
   }
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.