Is it choking on a illegal XML character?

-- 
Scott Stewart
ColdFusion Developer
 
SSTWebworks
4405 Oakshyre Way
Raleigh, NC. 27616
(919) 874-6229 (home)
(703) 220-2835 (cell)

-----Original Message-----
From: Brent Nicholas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 01, 2008 2:05 PM
To: CF-Talk
Subject: Google XML and CF isDefined

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:304604
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to