mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
two quick XML example fixes
This commit is contained in:
@@ -29,7 +29,7 @@ void setup() {
|
||||
XML xml = loadXML(url);
|
||||
|
||||
// Grab the element we want
|
||||
XML forecast = xml.getChild("channel").getChild("item").getChild("yweather:forecast");
|
||||
XML forecast = xml.getChild("channel/item/yweather:forecast");
|
||||
|
||||
// Get the attributes we want
|
||||
temperature = forecast.getInt("high");
|
||||
|
||||
Reference in New Issue
Block a user