Cheers Dom and Ian, the //:LookAt worked. Thanks for the references too.

Adrian

-----Original Message-----
From: Dominic Watson
Sent: 25 March 2008 20:02
To: CF-Talk
Subject: Re: XPath with namespace


>
> This blog entry discuss this in a bit more detail.
>
>
http://www.talkingtree.com/blog/index.cfm/2005/11/18/XmlSearchNoNameNamespac
e
>

It does but it also misses a point that this IS a missing feature of
ColdFusion. The solution works fine when you only have one default namespace
being used (as in Ade's example) but it falls down when there are more than
one.

Here is a recent thread from here that discusses it (with no current
solution other than ugly XPath):

http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:55440

Dominic


On 25/03/2008, Ian Skinner <[EMAIL PROTECTED]> wrote:
>
> Dominic Watson wrote:
> > Try <cfdump var="#XMLSearch(x, '//:LookAt')#">
> >
> > That specifies the 'default' or 'no name' namespace which is what is
> being
> > used in that xml. There can be a problem when there is more than one
> > namespace declared without a prefix but it doesn't seem that that comes
> up a
> > lot (though it does with the google maps geocoder). You should be ok
> here
> > though.
> >
> > Dominic
>
> This blog entry discuss this in a bit more detail.
>
>
http://www.talkingtree.com/blog/index.cfm/2005/11/18/XmlSearchNoNameNamespac
e


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302089
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to