?
Solved

XMLSearch not picking up values with xmlns declaration

Posted on 2007-08-01
2
Medium Priority
?
251 Views
Last Modified: 2013-12-20
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?
0
Comment
Question by:paddycobbett
2 Comments
 
LVL 1

Author Comment

by:paddycobbett
ID: 19613628
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??
0
 
LVL 9

Accepted Solution

by:
Andrew Maurer earned 1500 total points
ID: 19614450
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Many of the most common information processing tasks require sorting data sets.  For example, you may want to find the largest or smallest value in a collection.  Or you may want to order the data set in numeric or alphabetical order. …
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question