1) create an XSL file called removeNamespacesAndPrefixes.xsl
with the following code:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="no"/>
<xsl:template
match="/|comment()|processing-instruction()">
<xsl:copy>
<!-- go process children (applies to root node only)
-->
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="*">
<xsl:element name="{local-name()}">
<!-- go process attributes and children -->
<xsl:apply-templates select="@*|node()"/>
</xsl:element>
</xsl:template>
<xsl:template match="@*">
<xsl:attribute name="{local-name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:template>
</xsl:stylesheet>
2) create a CFM template with the following:
<cffile action="read"
file="#ExpandPath('.')#/file_with_node_namespaces_and_prefixes.xml"
variable="XMLDoc">
<cfset transformedXML = XmlTransform(XMLDoc,
"removeNamespacesAndPrefixes.xsl") />
<cfoutput>
<xmp>
#transformedXML#
</xmp>
</cfoutput>