On May 8, 6:23 pm, Jerry <[email protected]> wrote:
> I get many samples about calling xml attributes in google maps;
>
>   <marker name="Jackie" lat="37.427770" lng="-122.144841" />
>   <marker name="Peter" lat="37.413320" lng="-122.125604" />
>
> but I learnt it's not good to write xml with many attributes like
> above, elements should be used instead of attributes, so could anybody
> to give some explanation or samples about how to call elements in
> google maps?

Using attributes is fine: you are specifying attributes of each
marker. It's easier to use attributes if you always specify all of
them, which it's probable you will. Separating out the data into
elements is usually done where each element might be missed out or
repeated, which looks unlikely with the data you have. You might just
as well carry on using attributes.

Anyway, it's not a maps question. 
http://www.google.co.uk/search?q=reading+xml+with+javascript

-- 
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