Gazow Posted September 7, 2009 Share Posted September 7, 2009 if anyone could answer this id greatly appreciate. im a bit confused how iterating through xml worksif i have say three roots with tag album. and each contained several child tags "name". and each name tag has a text value say <name>Bob</name>if i use:var x = getElementsByTagName("album")[0].getElementsByTagName("name");is x now an array of just the first albums name tags right?and if i wanted to access specific names i just call x.childNodes[0].nodeValue;is this right?also does anyone know where i can find a tutorial on how to make a custom picasa web template Link to comment Share on other sites More sharing options...
Ingolme Posted September 7, 2009 Share Posted September 7, 2009 if anyone could answer this id greatly appreciate. im a bit confused how iterating through xml worksif i have say three roots with tag album. and each contained several child tags "name". and each name tag has a text value say <name>Bob</name>if i use:var x = getElementsByTagName("album")[0].getElementsByTagName("name");is x now an array of just the first albums name tags right?and if i wanted to access specific names i just call x[i].childNodes[0].nodeValue;is this right?also does anyone know where i can find a tutorial on how to make a custom picasa web templateBoth of your statements are correct. Intead of childNodes[0] you can also use firstChildI'm afraid I don't know of any tutorials for what you're asking, since I've never been on the picasa site. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.