On Feb 7, 10:21 am, "[email protected]"
<[email protected]> wrote:
> -----------------------------------------------------------------
>
> Uff, this is better said than done I think...
>
> Can you please show me in this example, is a short one, how the change
> could be made and if this will affect the previous statement var html
> = GXml.value(markers[i].getElementsByTagName("html")[0]);

This is not a Google Map API issue.  It is basic XML processing.  You
should go learn about XML (which is what I did when I ran into this
problem).

There are many ways to do XML.  The way I would do it is this way:
http://www.geocodezip.com/rockconcertsonline_albums.xml

Which is the format I use in my examples:
http://www.geocodezip.com/GenericMapBrowser.asp?filename=rockconcertsonline_albums.xml

  -- Larry


>
> The short example of the error is here:
>
> >http://rockconcertsonline.com/albums.xml
>
> -----------------------------------------------------------------
>
> On Feb 7, 5:35 pm, "[email protected]" <[email protected]>
> wrote:
>
> > On Feb 7, 9:28 am, "[email protected]"
>
> > <[email protected]> wrote:
> > > Thank you very much, it looks pretty much as the solution, I added
> > > this modification
> > > var html = GXml.value(markers[i].getElementsByTagName("html")[0]);
> > > in the line 192.
>
> > >  to this page:
>
> > >http://rockconcertsonline.com/rock_geomap.html
>
> > > This page is loading xml from other configuration and keeps working
> > > fine so that code is ok.
>
> > > The problem is when I go to the xml itself and I add the ]]>, it looks
> > > like causing "label" stops working, the file itself is in here:
>
> > >http://rockconcertsonline.com/albums.xml
>
> > You can't put CDATA content in an html attribute, only in the element
> > content.
>
> > This is an attribute:
> > <marker html="attribute" >
>
> > This is element content:
> > <marker >
> > <![[CDATA element content]]>
> > </marker>
>
> >   -- Larry
>
> > > Where an error can be found, I've been trying with " trying to find
> > > where is the problem but I have been unable to spot the problem, sorry
> > > for bothering you but maybe with your expertise it will take a second
> > > for you to find out the final detail for me to start months of nice
> > > work.
>
> > > Thank you so much for your time, I truly appreciate it, By the way,
> > > AMAZING PAGE of yours and actually I got scripts coming from your page
> > > all over the place so thank you so much twice, I am having a great
> > > time with Google maps and a good part of it is with the help of you,
> > > sorry that my ability doesn't match my passion.
>
> > > ---------------------------------------------------------------------------
> > >  ----------------------------------------------------------------
>
> > > On Feb 7, 8:09 am, Mike Williams <[email protected]> wrote:
>
> > > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to