On Nov 21, 12:58 pm, uk_martin <[EMAIL PROTECTED]> wrote:
> Thanks but in that one, it gives the choice of XML or no XML. What it
> doesn't say is how it works with KML, especially where the data in the
> KML is formatted for the HTML output, like this (as one snippet from
> the KML file)
>
>   <Placemark>
>     <name>Belle Vue Aces</name>
>     <description><![CDATA[<IMG height="30" alt="Belle Vue Aces Logo"
> hspace="4" src="http://www.brummiesfans.com/googlemaps/logos/
> belle_vue.jpg" width="30" align="left" vspace="4"><DIV
> align="left"><B>Greyhound Stadium,</B><BR>Kirkmanshulme
> Lane,Gorton,<BR>Manchester, M18 7BA.<BR><B>Tel:</B> 0161 877
> 8908<BR><B>Clubcall:</B> 0161 223 7720<BR><B><A 
> href="http://www.bellevuespeedway.co.uk/";>Website</A>   <A
> href="mailto:[EMAIL PROTECTED]">Click to e-mail</A> <BR>Main
> Racenight =</B> Monday 7:30pm</DIV>]]></description>
>     <styleUrl>#style5</styleUrl>
>     <Point>
>       <coordinates>-2.183940,53.462204,0.000000</coordinates>
>     </Point>
>   </Placemark>
>
> The relevant bit is the address : Greyhound Stadium,Kirkmanshulme
> Lane, Gorton,Manchester, M18 7BA, but how is that extracted from the
> KML. Looking at the example, the XML files used has the data
> structured specifically for the task. Of course I could duplicate the
> KML data and create an XML file to resemble the one in the econym.org
> example, but that'e the lesser preferred option to having one central
> data source and referencing it by the functions that need it.
>
I pointed you to that file for the to/from directions information.

For parsing KML, did you look at EGeoXml?
Or you could parse it yourself, KML is just a dialect of XML, you
don't need to use the formats in his examples.  You can retrieve the
data from the KML file if you load it with GDownload Url or GXmlHttp
and parse it out.  For the contents of elements, investigate
GXml.value.

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