That's strange, because when I use <cfset MyPostCodes = XMLSearch(GeoCodeXML,"//PostalCodeNumber")>
and CFDUMP the result, I get an array of length 1, when using it on the XML sample at http://www.google.com/apis/maps/documentation/ On 7/11/06, Howard Owens <[EMAIL PROTECTED]> wrote: > Yes, I started noodling through that as you were sending this ... > > It seems like one of the following should return something other than an > empty array ... > > getNode = XMLSearch(GeoCodeXML, "//PostalCodeNumber/XmlText/*"); > getNode = XMLSearch(GeoCodeXML, "//PostalCodeNumber/XmlText"); > getNode = XMLSearch(GeoCodeXML, "//PostalCodeNumber/*"); > getNode = XMLSearch(GeoCodeXML, "//PostalCodeNumber"); > > The only thing that hasn't returned an empty array so far is: > > getNode = XMLSearch(GeoCodeXML, "//*"); > > > > -----Original Message----- > From: James Holmes [mailto:[EMAIL PROTECTED] > Sent: Monday, July 10, 2006 10:43 PM > To: CF-Talk > Subject: Re: There's got to be an easier way to parse this structure > > 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). -- 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:246041 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

