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

<!---
	Strip out the tag prefixes. This will convert tags from the
	form of soap:nodeName to JUST nodeName. This works for both
	openning and closing tags.
--->
<cfset strXml = strXml.ReplaceAll(
	"(</?)(\w+:)",
	"$1"
	) />
 
<!---
	Remove all references to XML name spaces. These are node
	attributes that begin with "xmlns:".
--->
<cfset strXml = strXml.ReplaceAll(
	"xmlns(:\w+)?=""[^""]*""",
	""
	) />

For Cut-and-Paste