Parsing XML Data with XMLElement
in
Core Library Questions
•
1 year ago
Hello all,
I am new to XMLElement. I am pulling XML from a php site into a processing sketch, and I am trying to parse out the XML categories, so that I can just output the XML content in void draw(). Not completely sure where to go from here:
XMLElement xmlFeed;
void setup() {
size(600, 600);
xmlFeed = new XMLElement(this, "http://jonlinton.com/ipw/getsteps.php");
int numEntries = xmlFeed.getChildCount();
for (int i = 0; i < numEntries; i++) {
XMLElement kid = xmlFeed.getChild(i);
println(kid);
}
}
void draw() {
background(0);
}
Thanks!
1