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 -----Original Message----- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 4:00 PM To: CF-Talk Subject: Xpath Help Having some XmlSearch problems, need help, totally stuck, For some reason, the "results" object is not returning any results on "//doDirectorySearch". But, from the xml being saved below, it looks like it should totally work. I also tried "//[EMAIL PROTECTED]" thinking that it was an attribute issues, but no luck on that either. Thanks in advance! ------------------------------------------------ <cfsetting showdebugoutput="false" /> <cfsavecontent variable="strXmlData" ><?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <doDirectorySearch xmlns="http://xstandard.com/2004/web-services"> <lang>en</lang> <searchFor>xxxxxxxxxxx</searchFor> <filterBy>snippets</filterBy> </doDirectorySearch> </soap:Body> </soap:Envelope> </cfsavecontent> <cfset xmlData = XmlParse( strXmlData, true ) /> <cfset results = XmlSearch( xmlData, "//doDirectorySearch" ) /> <cfdump var="#results#" /> <cfdump var="#xmlData#" /> ........................ Ben Nadel www.bennadel.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240843 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54