Thank you, Eddie. That helped me figure it out, but it turned out that I didn't need to use cfxml as I was already using xmlparse, but the rest of your code was spot on. Have a good weekend, if you haven't already started.
>On 7/8/05, Eddie Awad wrote: > >xPath to the rescue: > ><cfxml variable="myDOM"> ><doc> ><Parameter> > <ParameterName>aAccountNumber</ParameterName> > <ParameterValue>12345</ParameterValue> ></Parameter> ><Parameter> > <ParameterName>bAddress</ParameterName> > <ParameterValue>USA</ParameterValue> ></Parameter> ></doc> ></cfxml> > ><cfset accountNumber = >xmlSearch(myDOM,"doc/Parameter[./ParameterName='aAccountNumber']/ParameterValue")> > ><cfset address = >xmlSearch(myDOM,"doc/Parameter[./ParameterName='bAddress']/ParameterValue")> > ><cfoutput> >Account Number: #accountNumber[1].xmlText#<br> >Address: #address[1].xmlText#<br> ></cfoutput> > >If you have multiple account number nodes, you would need to loop over >the array accountNumber[]. Same applies to the array address[]. > >HTH >-- >Eddie Awad. >http://awads.net/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211466 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

