Hi Jerry,
if you don't find a way to solve your problem, maybe I can help you.
I build xml files to be loaded on the map in a different way than the
suggested one from Google.
I'm not sure why that isn't working for me,but here is how it looks
the xml file:
<markers>
<marker>
<info><![CDATA[something]]></info>
<lat>10.1111111</lat>
<lng>20.2222222</lng>
</marker>
<marker>
<info><![CDATA[something else]]></info>
<lat>50.1111111</lat>
<lng>30.2222222</lng>
</marker>
</markers>
and in the map page I use to read the values this way:
var info = markers[i].childNodes[0].nodeValue;
I use that instead of the suggested:
<markers>
<marker info="something" lat="50.1111111" lng="20.2222222"/>
<marker info="something else" lat="50.1111111" lng="20.2222222"/>
</markers>
and then in the page to read:
var info= markers[i].getAttribute("info");
Regards
On Mar 31, 8:03 pm, Jerry Garciuh <[email protected]> wrote:
> Hi folks,
>
> When my XML is returned with no locations found what should I have in
> <markers></markers>?
>
> Validator @ W3 objects to the XML below with 'end tag for "markers"
> which is not finished'. I changed all of my "#REQUIRED" to "#IMPLIED"
> but this was appreantly not the issue.
>
> <?xml version="1.0" encoding="utf-8" ?>
> <!DOCTYPE markers [
> <!ELEMENT markers (marker+)>
> <!ELEMENT marker (#PCDATA)>
> <!ATTLIST marker lat CDATA #IMPLIED>
> <!ATTLIST marker lng CDATA #IMPLIED>
> <!ATTLIST marker name CDATA #IMPLIED>
> <!ATTLIST marker address CDATA #IMPLIED>
> <!ATTLIST marker distance CDATA #IMPLIED>
> <!ATTLIST marker phone CDATA #IMPLIED>
> ]>
> <markers>
> </markers>
>
> Any advice appreciated.
>
> JG
--
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.