On Aug 3, 8:14 pm, shadrack <[email protected]> wrote:
> Ahh yes, I was just looking at the xml the first time.  Sorry about
> that, and thanks for the reply!
>
> I'm assuming the other part of my question may be a bit far-reaching
> to expect a quick answer on a post, but I'll try.  Is there any way to
> reference other xml elements from within the xml?  What I mean is, if
> I have a marker named A and its associated attributes, and a different
> marker named B that includes A in one of its attributes, and I display
> marker B, can I somehow reference the attributes of marker A when I
> display marker B?  This may be confusing, but I'm trying to tie
> different markers together that are related through their
> attributes...perhaps to highlight connected markers, etc.  Thanks
> again so much,

My first thought would be to implement an associative array of the
markers so I could reference them by id in the xml.

Have you seen Mike Williams' tutorial?

He has examples of references to markers (in a sidebar), and
associative arrays (for the icons).  Those might help you figure it
out.

  -- Larry


>
> Shad
>
> On Aug 3, 7:58 pm, "[email protected]" <[email protected]>
> wrote:
>
> > On Aug 3, 7:26 pm, shadrack <[email protected]> wrote:
>
> > > Thanks for the response and help.  I don't see where you have CDATA
> > > inside the XML.  Can you provide an example of how you include the
> > > CDATA elements in the xml?  That will undoubtedly work better than
> > > what I'm doing. I've used CDATA elements before, but I tried inside
> > > the xml, and I couldn't get it to work.  Thanks again,
>
> > Do a view source on this xml (link in my earlier post 
> > also...):http://www.geocodezip.com/F18CrashSite081208.xml
>
> > Do you not see the CDATA tags?
>
> >   -- Larry
>
> > > Shad
>
> > > On Aug 3, 5:27 pm, "[email protected]" <[email protected]>
> > > wrote:
>
> > > > On Aug 3, 4:58 pm, shadrack <[email protected]> wrote:
>
> > > > > Hi,
>
> > > > > I have a site that is displaying Google Maps API markers 
> > > > > (http://www.julieshad.com/so_or_ag/map.htmlutilizinghttp://www.juliesh...)
> > > > > by accessing data from XML, parsing it and displaying it. Right now
> > > > > I'm using attributes, which I'm finding to be somewhat limiting, and I
> > > > > will be expanding my number of markers so I need to decide on a data
> > > > > structure. First, in order to put HTML within the attribute (i.e. img
> > > > > sr to display a picture), I'm having to use some unorthodox coding to
> > > > > place "<", etc. This won't work because I want it to be easy to 
> > > > > update/
> > > > > change the XML content for people who are novices at HTML.
>
> > > > I use CDATA elements in XML to allow entry of text "as is".
>
> > > > Example:http://www.geocodezip.com/GenericMapBrowser.asp?filename=F18CrashSite...
>
> > > > which uses this xml:http://www.geocodezip.com/F18CrashSite081208.xml
>
> > > >   -- Larry
>
> > > > > Additionally, a goal of mine is to be able to reference data in the
> > > > > XML through other attributes in the XML. For instance, if an attribute
> > > > > of one marker has a word that is the name of another marker, I want to
> > > > > be able to link to that marker. If you click on the green marker at
> > > > > the top, it displays "Amuse" and "Arbor House". These are the
> > > > > "connections" attribute of the marker named "Brian's Green Thumb...".
> > > > > Since "Amuse" is the exact name of another marker, I'd like to access
> > > > > the attributes of "Amuse" through a link or something. Is this making
> > > > > sense? And is it possible?
>
> > > > > So, in general I'd like to find a better and easier way to organize my
> > > > > data for display. Mysql may be nice, but I want to avoid setting up a
> > > > > database and maintaining that if possible. Will a more robust
> > > > > application of xml be better, like using more elements vs. a lot of
> > > > > attributes? Or maybe just a comma-separated value .txt file may be
> > > > > better, but hard to believe. I'm not an expert coder so I need
> > > > > something that works with Google Maps fairly well. Thanks for any
> > > > > time, and I'll gladly help explain further if questions,
>
> > > > > Shad

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