Home > Computer-related > GMap xml parser error

GMap xml parser error

From time to time, I like to fiddle with the Google Maps API to help me better visualize our world. While working on a project this morning, I learned that the GXml.parse() function used in combination with the markers[i].getAttribute javascript will throw an error if it encounters an ampersand in the xml list. Long story longer, the problem was identified when an entire xml table was not being displayed on the map, and the bug was traced back to the xml, and not the javascript. I’m sure there are ways to validate the input to ensure no special characters exist that will create issues with the program, but that will have to wait for the next revision. For now, just be wary of special characters in your xml data fields if your stuff doesn’t work.

Categories: Computer-related Tags:
  1. No comments yet.
  1. No trackbacks yet.