Just a quick note. I was talking with Stephen Moretti about working with the results of the XMLSearch function. He wanted to know if the results were references or copies of the XML data. I did a few tests and from what I see - they are references. Here is a quick example.
<cfset b = xmlSearch(stuff, "//product[@name='beta']")>
<cfset test = b>
<cfset test.xmlchildren.xmltext =99>
<cfset test.xmlattributes.name = "boo">
I begin with a simple XML packet of products. Each product has a name and a price child. I do a search to find the Beta product. Once I've got it I manipulate the name and the price. Here are the results of the dumps:
Not sure how useful this is - I almost never actually update XML - but hopefully this will help others.