Please write my code for me?

What your code seems to do is only ever read one address from the XML
file, but I guess that's the way you want it.

>           address = markers[0].getAttribute("address");
>                   //label = markers[1].getAttribute("label");

That doesn't look right, its now looking at the (non-existant?) second
address for a label

A general approach could be to modify addToMap () to use the global
'label' variable you read to set whatever you wanted about the marker,
e.g.
    var marker = new GMarker(point, {title: label} );

You'll have to be more sophisticated if you plan on ever having more
than address in your XML
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to