Glad to help! Since you say you know the format, I don't see any reasons why you should not do this. It certainly cuts down on the amount of digging you would have to do if you stopped the xmlSearch() a level above this element.
This works just peachy: <cfset results = xmlSearch(xmlPacket, "//*[name()='searchFor']")> <p><cfdump var="#results#"></p> <p><cfoutput>#results[1].XmlText#</cfoutput></p> M!ke -----Original Message----- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 4:54 PM To: CF-Talk Subject: RE: Xpath Help Mike, You rock! I would like to modify it to be: //*[name()='searchFor'] Since in only care about the searchFor node and not in it's relations to other elements; I know what the xml data is going to look like and am not worries about finding the wrong element. Any red flags about my way considering the small amount of data? ........................ Ben Nadel www.bennadel.com -----Original Message----- From: Dawson, Michael [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 5:27 PM To: CF-Talk Subject: RE: Xpath Help Ahhh. This is what I was originally going for... xmlSearch(xmlPacket, "/soap:Envelope/soap:Body/*[name()='doDirectorySearch']/child::*") This search will return all child elements, of doDirectorySearch, with each element as an array item. The problem, with your xml, is that you have namespaces for "Envelope" and "Body", but no namespace for "doDirectorySearch". So, you have to search on a "name()" that is "doDirectorySearch" within your xml packet. M!ke ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240849 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