two quick XML example fixes

This commit is contained in:
Daniel Shiffman
2013-06-03 14:31:32 -04:00
parent 5684907cd6
commit dd88eecfe9
2 changed files with 2 additions and 2 deletions
@@ -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");