thank you Davide Installing Firebug now & I promise to go back to javascript 101 before asking basic js questions again!!
On May 31, 6:13 pm, dcremo <[email protected]> wrote: > Hi Bern, > first I would recommend you to use Mozilla and Firebug to debug such > cases, it is _extremely_ helpful. > > In your specific situation the problem is that the first child of > <photo> is not description, but a textNode (empty). > So odd children are textNodes and even children are the description > elementNodes you look for. > > This is the correct expression: > > markers[i].childNodes[1].textContent > > Regards, > Davide > > On May 31, 9:13 am, bern <[email protected]> wrote: > > > > > I'm following Pamela's XML parsing demo > > -http://gmaps-samples-v3.googlecode.com/svn/trunk/xmlparsing/downloadu... > > > My attempt here -http://norestforthewicked.net/nihon09/test2 > > > My issue is getting to the "description" in the XML that I've accessed > > via the Flickr API. Sample: > > > <photo id="999999999" secret="9999999" server="999999" farm="9" > > title="Reiun-in" isprimary="0" datetaken="2009-10-01 10:55:58" > > datetakengranularity="0" latitude="34.97823" longitude="135.771722" > > accuracy="16" place_id="ilArHGKYBJycAI9KsQ" woeid="15015372"> > > <description>subordinate temple of Tofuku-ji</description> > > </photo> > > > In the loop, I'm declaring a variable that attempts to get the first > > child of "photo X" - > > > var descString = (markers[i].childNodes[0].nodeValue); > > > Could be something obvious as js chops are strictly monkey see monkey > > do -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
