thanks Andrew for your suggestion... I was able to filter on the
attribute "station" once I figured out how to pass the variable into
the javascript from the server..
Tom

On Jun 10, 7:23 am, Andrew Leach <[email protected]>
wrote:
> On Jun 10, 11:59 am, Tom <[email protected]> wrote:
>
> > The routine GXml.parse that I'm currently using parses the entire xml
> > file and creates a map point for each marker contained in the xml
> > file.
> >  Is there a way to filter out with a condition or another type of
> > read
> > to select only the marker that matches an inputted value against the
> > string attribute in my case  called station?
>
> Have you thought of using an attribute called "id" instead of
> "station"?
>
> xml.documentElement.getElementById("Carnaby_Street")
>
> id must start with a letter and cannot contain spaces, but something
> like an underscore can easily be replaced on the fly for display
> purposes.http://www.w3.org/TR/1999/REC-html401-19991224/types.html#type-name
>
> Otherwise you are limited to looping through all the elements and
> using the one(s) which match your criteria.
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
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