coldfusion/xml - obtain a value by xmlName, rather than by xmlchildren array position

ariffantasi

New Member
Given the following XML "thisXML":
F4iGT.gif
I can obtain the product name via\[code\]<cfset vProduct = thisXML.xmlchildren[1].xmltext>\[/code\]But, how do obtain a value by xmlName, rather than by xmlChildren array position, i.e. in pseudocode:\[code\]<cfset vProduct = thisXML.xmlchildren[xmlName='product'].xmltext>\[/code\]
 
Back
Top