On Mar 31, 8:44 am, xmalcolm <[email protected]> wrote:
> Hi,
>
> I currently have an XML file which displays the addresses in the file
> in the form of an icon. The following is the code that I am using:
>

http://groups.google.com/group/google-maps-api/web/suggested-posting-guidelines
http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical

>
> The XML file is formatted in the following way:
>
> <markers>
>   <marker address="Address here"/>
>   <marker address="Address here"/>
> </markers>
>
> But now I have an XML which is an output of the records in the
> database and what I want to do is use the addresses in that file. But
> how do I do it? any ideas?
>
> The other XML file from which I want the addresses to be picked are in
> the following format:
>
> <NewDataSet>
>   <tbl_Member>
>     <Member_Address>Withdean</Member_Address>
>   </tbl_Member>
>
> What I have noticed is that the values in the XML file are not within
> any quotation marks. Is there anyway I can use the above xml format to
> feed into google map to show icons. Or is there a way I could get the
> database to output the data in the format mentioned previously?

You can use either xml attributes (I have)
<marker address="xxx" />
or xml elements
<marker>
<address>xxx</address>
</marker>

to load data for use by the API.
See GXml.value for a browser independent way to get the element
content.
http://code.google.com/apis/maps/documentation/reference.html#GXml

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