If you need to parse elements, take a look at the code for this http://www.birdtheme.org/useful/sub/highlig1.html The reading of XML/KML is in function addOverlayFromKML. I am not an expert, but you may get an idea of what to look for.
On 28 Sep, 04:38, cfmarr <[email protected]> wrote: > Thanks for all the help Larry and webbirder, I finally have had a > chance to work on this again. I fixed the javascript errors and now > the map loads, but I am still having trouble with the xml data. All > the examples I look at has the lat & lon data stored as an attribute > and with my XML file the lat & lon is stored as an element. Because > my XML file is really a Garmin TCX file, I would like to not have to > change any code in the XML. I have tried a bunch of different ways to > try an get the lat & lon data into an array but can't seem to get it > to work. When I change my XML data to be like the examples I can get > it to work fine, but like I said I would like to not have to do that. > > I know this is more of an XML data issue the a google maps v3 issue, > but I would appreciate any help figuring this out. > > http://www.hairymedia.com/hdtrails/fttm/html/html5.html > > PS: sorry I had my link to the wrong XML file before, that is fixed > now > > On Sep 18, 7:16 am, webbirder <[email protected]> wrote: > > > > > This is an example of parsing XML in > > v3http://www.birdtheme.org/useful/markersfromXMLv3.html > > > On 17 Sep, 19:05, cfmarr <[email protected]> wrote: > > > > Trying to make a simple map that creates a polyline from my XML data > > > and I can't seem to make it work in v3. I am sure it is a simple > > > solution, any help is appreciated. > > > >http://www.hairymedia.com/hdtrails/fttm/html/html5.html– Skjul sitert > > >tekst – > > – Vis sitert tekst – -- 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.
