On Jan 19, 4:24 pm, Black Fog <[email protected]> wrote:
> hi there,
>
> a simple question of xml processing through js !
>
var xml = GXml.parse(data);
var markers = xml.documentElement.getElementsByTagName("marker");
for (var i = 0; i < markers.length; i++)
{
var x= markers[i].getElementsByTagName("x")
[0].firstChild.nodeValue;
...
The firstChild of the x element is the text node containing the
string. That's untested as I don't have a relevant XML feed
conveniently to hand.
Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---