Why do you have // vs /?

On 7/11/06, Howard Owens <[EMAIL PROTECTED]> wrote:
>
> Anybody else have any clue why my
> XMLSearch(GeoCodeXML,"//PostalCodeNumber")
> might be returning an empty string?
>
> -----Original Message-----
> From: James Holmes [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 11, 2006 12:40 AM
> To: CF-Talk
> Subject: Re: There's got to be an easier way to parse this structure
>
> 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, "//*");
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:246153
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to