I saw a recent post that expressed concern that a XMLSearch bug in ColdFusion MX 6/7 still has not been fixed in ColdFusion MX 7.01. I think its just a misunderstanding about how to reference namespaces, specifically the no-name namespace, and in fact there is no such bug.

To back up, I learned about this special case from a blog entry by Pete Freitag where Sean Corfield proposed the solution in the comments, so my blog entry here is just a reiteration of that solution.

To begin, consider the following XML Document, test.xml:

view plain print about
2 xmlns="http://ns.r-xml.org/2004-08-02"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 userId="TMTest01">

5<!-- Example of Search Status results -->
6 <ProviderReferenceId>
7     <IdValue>204</IdValue>
8 </ProviderReferenceId>