This content has been marked as final. Show 4 replies
you would use the xmlAttributes structure on the node you want the
I find <cfdump var="#XMLSessionID#"> to be most usefully when traversing
I second Ian's suggestion. <cfdump>-ing XML docs has saved me more than once from pulling my hair out when dealing with XML in CF.
The are no end tags, so I would assume element RecordSet is within element Select and Select is within UpShotResponse. Then some possibilities are
I should probably also mention, if you are worried about the format of your XML file changing, or will be dealing with repeating elements, you may also want to take a look at the CF XMLSearch() function. It allows you to use XPath to specify what XML elements you are looking for and typically returns the data as an array. The syntax is something like this:
XPath is a pretty powerful way to retreive data from XML, though if you are just looking for 1 element in an unchanging XML document, it might not be the most efficient thing to use.