Yes, this is what XMLSearch() is for. You need to use XPath to search
for all PostalCodeNumber nodes.

An intro to XPath:

http://www.w3schools.com/xpath/default.asp

On 7/11/06, Howard Owens <[EMAIL PROTECTED]> wrote:
> To pull a zip code from the Google Maps API, the zip can be returned in one
> of three different locations (that I've found so far).
>
>
>
> kml.Response.Placemark.AddressDetails.Country.AdministrativeArea.Locality.Po
> stalCode.PostalCodeNumber.XmlText
>
> kml.Response.Placemark.AddressDetails.Country.AdministrativeArea.SubAdminist
> rativeArea.Locality.PostalCode.PostalCodeNumber.XmlText
>
> kml.Response.Placemark.AddressDetails.Country.AdministrativeArea.SubAdminist
> rativeArea.PostalCode.PostalCodeNumber.XmlText
>
>
>
> To save me from doing a series of nested Ifs . is there an easier way to
> find this element, no matter how deep or not deep?
>
>
>
> And hell, I haven't even tried non-US addresses yet.


-- 
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246034
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to