Category: ColdFusion

XMLSearch and empty arrays with namespaces

I ran into an odd issue today and I'm documenting it here for my own future knowledge. When searching an XML document with defined namespaces on elements, XMLSearch wasn't returning any results. Take the following example: Dan Short 5 Angela Buraglia 10 The result of this is unexciting... XPathFirstRun.png The array *should* have all of the results from my person search. Unfortunately the namespace is mucking everything up... A little Google searching got me to a post from Jeremy Gibbens showing how to get around the namespace issue. You need to search by the local name of the node instead, like so: This gives a much more satisfying result: XMLPathSecondRound.png Have fun searching your XML!
3 comments | Posted by Daniel Short on Feb 12, 2009 at 1:29 PM | Categories: ColdFusion -

Still ACE'ing after all these years

Just got my renewal email from the wonderful folks at Adobe. Looks like I'm good for another year as an Adobe Community Expert. I'm hoping to post more smaller tips and tricks here on the blog, and hopefully get even more involved in the Community this year. And hell, I might even make it to MAX (all fingers crossed).

1 comments | Posted by Daniel Short on Feb 11, 2009 at 1:26 PM | Categories: ColdFusion -

Why I love ColdFusion

Because my first use of the ColdFusion AutoSuggest control took me 10 minutes to implement. I was doing a cfselect with a bind to load all cities in a state. Unfortunately, with more than 5,000 cities in some states the application was getting seriously bogged down with huge asynchronous http responses in the background.

Ten minutes later I have a solution in production and customers are happy.

LOAAutoSuggest.png

2 comments | Posted by Daniel Short on Feb 5, 2009 at 2:42 PM | Categories: ColdFusion -