On Jun 3, 5:34 pm, hullamospapagaj <[email protected]> wrote:
>
> How I can read out from <description> the "<br>Security: None<br>"
> element? I want to generate custom icon on the map, based on security
> type (in this case: green icon= security none, red icon=wep, wpa.)

A "How do I parse XML and extract data" question has nothing to do
with the Maps API.

For what it's worth, once you have the content of that element, I
would search for the string "<br>Security: " and then, having found
its position in the string, look at the character 15 places on. If
it's "w" set a red icon, otherwise use green (or the other way round:
if it's "N" set green, otherwise use red).

http://www.google.co.uk/search?q=javascript+search+string+for+text
http://www.google.co.uk/search?q=javascript+find+character+at+position

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