I agree with Andrew Leach, using attributes is fine. But when I needed to learn how to read "the text between" an elements start tag and end tag in KML files, I studied this XML tutorial first http://www.w3schools.com/xml/default.asp and learned how to use javascript to send the file to the browsers XML parser. But this may also be done with GXml http://code.google.com/intl/no/apis/maps/documentation/reference.html#GXml and GDownloadUrl. I use this, with an explanation on how I use it, here http://www.birdtheme.org/useful/sub/highlig1.html I am not an expert though.
On 8 Mai, 19:23, 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? > > <marker> > <name>Jackie</name> > <lat>37.427770</lat> > <lng>-122.144841</lng> > </marker> > <marker> > <name>Peter</name> > <lat>37.413320</lat> > <lng>-122.125604</lng> > </marker> > > -- > 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 > athttp://groups.google.com/group/google-maps-api?hl=en. -- 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.
