On Apr 20, 11:24 pm, BigJoeTX <joe.esqu...@gmail.com> wrote: > > My problem is that the two queries are returning separate XML > structures. I can check for and account the differences using PHP > without much of problem. What worries me is the possibility of a > different type of structure showing up without me knowing about it and > accounting for it. Is there a way to know what different XML > structures might be returned by Google Maps?
Not really. Well, it's supposed to use the xAL DTD, but the XML structure is rather fluid -- that is, the DTD allows elements to be nested in different ways. You'd need to parse the XML using childNode or something similar and discover which element was next. You might try the v3 geocoder which has a flatter XML structure: http://code.google.com/apis/maps/documentation/geocoding/index.html#XML -- note the different url for this geocoder. And it doesn't need a key, but it does need "sensor". http://maps.google.com/maps/api/geocode/xml?sensor=false&address=kingwood,tx -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to google-maps-...@googlegroups.com. To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.