Grant
 
Try
 

<cfloop index="i" from="1" to="#numItems#">

                        <cfscript>

            if (isdefined(“objXML.properties.XmlChildren[#i#].handler”) {

                                    arguments.handler = objXML.properties.XmlChildren[i].handler.xmlText;

            }

                        </cfscript>

</cfloop>

 

You can still output variables in the isDefined function

 

Steve

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Grant Straker
Sent: Wednesday, June 25, 2003 1:03 PM
To: CFAussie Mailing List
Subject: [cfaussie] Check if dynamically assigned XML node exists

I need to check if a dynamically assigned XML node exists.

 

Example

 

<cfloop index="i" from="1" to="#numItems#">

                        <cfscript>

            if (isdefined(“objXML.properties.XmlChildren[i].handler”) {

                                    arguments.handler = objXML.properties.XmlChildren[i].handler.xmlText;

            }

                        </cfscript>

</cfloop>

 

The above wont work in an isdefined due to the “I” counter making the variable name invalid.

 

Anybody know  a way around this?

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to