Stripping XML Name Spaces And Node Prefixes From ColdFusion XML Data (To Simplify XPath)

<!---
	Parse the XStandard SOAP request XML into a ColdFusion XML
	document object. Be sure to trim the XML so that it
	parses properly.
--->
<cfset xmlRequest = XmlParse(
	strXml.Trim()
	) />
 
<!--- Search for the "searchFor" XML node using XPath. --->
<cfset arrSearchNodes = XmlSearch(
	xmlRequest,
	"//searchFor"
	) />
 
<!--- Dump out the search results. --->
<cfdump
	var="#arrSearchNodes#"
	label="searchFor XPath Search Results"
	/>

For Cut-and-Paste