howdy all, so I've got a little bug I'm having a tough time with. I'm new to 
manipulating XML in CF. It's pretty easy however, but I've run into a problem 
I'm not sure how to solve.

The Google box returns an XML structure that I've processed. But from time to 
time, I find that the 'T' element (Title) is not returned. And it errors out.

I tried:
<cfloop from="1" to="#ArrayLen(XMLContent.GSP.RES.R)#" index="idx">
<cfif isDefined("XMLContent.GSP.RES.R[idx].T")>

But I get error:
Element T is undefined in a Java object of type class coldfusion.xml.XmlNodeMap 
referenced as 

If I do:
<cfif isDefined("XMLContent.GSP.RES.R")>

It works fine.... but that's not what I need.

Thoughts? Should I place the current index node into a var and then test?

BN 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304601
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