How about this: <cfset stXMLExtras.PaymentMethods = xmlcontent.message.payment_methods.payment_method[x].xmlText />
Dom On 16/07/07, Che Vilnonis <[EMAIL PROTECTED]> wrote: > > Hmmm. The result returned is dynamic. Sometimes at is big (say 200 lines), > sometimes, it is not. > > -----Original Message----- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: Monday, July 16, 2007 12:34 PM > To: CF-Talk > Subject: Re: Setting variables from XML content. > > and that one variable assignment is definitely the culprit? If you > comment > out that single line, everything works? > > can you do <cfdump > var="#xmlcontent.message.payment_methods.payment_method#"> ? how big of > an > array are we talkin'? :) > > On 7/16/07, Che Vilnonis <[EMAIL PROTECTED]> wrote: > > Adrian/Charlie... I can define vars like this: > > stXMLExtras.Interim_Order_ID = xmlcontent.message.order_id.xmlText; > > > > But when I want to assign a var a *whole section* of XML, it just hangs. > > <cfset stXMLExtras.PaymentMethods = > > xmlcontent.message.payment_methods.payment_method /> > > > > -----Original Message----- > > From: Adrian Lynch [mailto:[EMAIL PROTECTED] > > Sent: Monday, July 16, 2007 12:16 PM > > To: CF-Talk > > Subject: RE: Setting variables from XML content. > > > > What's not happening? > > > > Adrian > > > > -----Original Message----- > > From: Che Vilnonis > > Sent: 16 July 2007 17:08 > > To: CF-Talk > > Subject: Setting variables from XML content. > > > > > > Having a bit of trouble with XML. From XML data that is returned to me, > I > can loop thru the data using something like this: > > > > <cfloop from="1" > > to="#arrayLen(xmlcontent.message.payment_methods.payment_method)#" > > index="x"> > > some code. > > </cfloop> > > > > But I am having trouble setting a CF variable. > > <cfset stXMLExtras.PaymentMethods = > > xmlcontent.message.payment_methods.payment_method /> > > > > What am I doing wrong? Thanks, Che > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| CF 8 â Scorpio beta now available, easily build great internet experiences â Try it now on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283775 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

