> <cfif structKeyExists(ledata.callmeasurement.resultscall.numbers, "dnis")> > <cfset dnis_array = ArrayNew(1) /> > <cfloop from="1" > to="#arrayLen(ledata.callmeasurement.resultscall.numbers.XMLChildren)#" > index="i"> > ...etc
Also, the ArrayLen() of 'ledata.callmeasurement.resultscall.numbers.XMLChildren' could in *theory* not be the number of dnis elements (though in practice in this case it is). It could be rewritten to marry theory and practice: <cfloop from="1" to="#arrayLen(ledata.callmeasurement.resultscall.numbers.dnis)#" index="i"> .... HTH Dominic -- Blog it up: http://fusion.dominicwatson.co.uk ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:305672 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

