XMLSearch not picking up values with xmlns declaration

Can anyone explain why the following coldfusion code:

<cfset webtags=XMLSearch(templateXml, "*//cfinvoke")>

.. does not pick up my <cfinvoke> tags when the <html> root element has the following xmlns value:

<html xmlns="http://www.w3.org/1999/xhtml">

Note that when i remove the xmlns completely it works fine.

Any ideas?
Who is Participating?
paddycobbettAuthor Commented:
btw.. as i mentioned it works fine with the xmlns removed, can I also be reassured that the Xpath is fine.. i.e. it should pick up <cfinvokes> at any depth within the whole xml document. I'm sure the Xpath is fine, but can't think why the xmlns causes problems??
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.