You could use a program to edit the text. It's mainly just simple
substitutions that are required.
Or you could put the whole thing into a CDATA section inside your HTML.
Inside a CDATA section, the text is treated as only being character
data, and things that look like tags are ignored. So you end up with
<markers>
<marker lat="46.66039405491582" lng="-123.67449045181274">
<html>
<![CDATA[
<table width="419" border="0">
...
</table>
]]>
</html>
</marker>
</markers>
Because the CDATA is not an attribute, the syntax for reading it is
different.
var html = GXml.value(markers[i].getElementsByTagName("html")[0]);
Hint: Watch out for that unexpected "[0]" at the end. There's a tendency
for people to miss it.
--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---