I want to remove XMLNS="http://......" from the xml. I am using the following code it is removing the XMLNS from the elements but this is also stripping the elemenet prefixes which i don't want..Please help...

Input:

```
<rss xmlns="http://www.ibm.org/wcmxml">
    <channel xmlns="">
        <title>Products WCI Feed</title>
        <link>http://www.ibm.com/feeds/sample.rss</link>
        <description>Products WCI RSS Feed</description>
        <lastBuildDate>Thu, 07 Nov 2013 11:30:00 EET</lastBuildDate>
        <ibmfs:etag xmlns:ibmfs="http://purl.org/net/ibmfeedsvc/feedsvc/1.0">FeedServiceServlet</ibmfs:etag>
        <item>
            <title>Product Name</title>
            <link>http://www.source-ECM-Domain.com/item/sample.htm</link>
            <description>Product Description</description>
            <pubDate>Thu, 07 Nov 2013 11:45:00 EET</pubDate>
            <guid>UniqieIDFromECMUpTo256Char00</guid>
            <category>/Taxonomy1/Category10/Category100</category>
            <author>author@us.ibm.com</author>
            <ibmwcm:action xmlns:ibmwcm="http://purl.org/net/ibmfeedsvc/wcm/1.0">add</ibmwcm:action>
            <ibmwcm:itemType xmlns:ibmwcm="http://purl.org/net/ibmfeedsvc/wcm/1.0">Content</ibmwcm:itemType>
            <ibmwcm:library xmlns:ibmwcm="http://purl.org/net/ibmfeedsvc/wcm/1.0">TGCS WCI Feed Service</ibmwcm:library>
            <ibmwcm:path xmlns:ibmwcm="http://purl.org/net/ibmfeedsvc/wcm/1.0">/Products</ibmwcm:path>
            <ibmwcm:displayTitle xmlns:ibmwcm="http://purl.org/net/ibmfeedsvc/wcm/1.0">ProductName</ibmwcm:displayTitle>
            <ibmwcm:authoringTemplate xmlns:ibmwcm="http://purl.org/net/ibmfeedsvc/wcm/1.0">TGCS WCI Feed Service/AT Product Info</ibmwcm:authoringTemplate>
            <ibmwcm:workflow xmlns:ibmwcm="http://purl.org/net/ibmfeedsvc/wcm/1.0" name="WFSystem">
                <ibmwcm:workflowStage>WFStageSystemPublish</ibmwcm:workflowStage>
            </ibmwcm:workflow>
            <ibmwcm:publishDate xmlns:ibmwcm="http://purl.org/net/ibmfeedsvc/wcm/1.0">Thu, 07 Nov 2013 15:14:00 EET</ibmwcm:publishDate>
            <ibmwcm:expirationDate xmlns:ibmwcm="http://purl.org/net/ibmfeedsvc/wcm/1.0">Fri, 17 Jul 2014 11:00:00 EET</ibmwcm:expirationDate>
        </item>
    </channel>
</rss>

```

Output:

```
<rss xmlns="http://www.ibm.org/wcmxml">
    <channel xmlns="">
        <title>Products WCI Feed</title>
        <link>http://www.ibm.com/feeds/sample.rss</link>
        <description>Products WCI RSS Feed</description>
        <lastBuildDate>Thu, 07 Nov 2013 11:30:00 EET</lastBuildDate>
        <etag>FeedServiceServlet</etag>
        <item>
            <title>Product Name</title>
            <link>http://www.source-ECM-Domain.com/item/sample.htm</link>
            <description>Product Description</description>
            <pubDate>Thu, 07 Nov 2013 11:45:00 EET</pubDate>
            <guid>UniqieIDFromECMUpTo256Char00</guid>
            <category>/Taxonomy1/Category10/Category100</category>
            <author>author@us.ibm.com</author>
            <action>add</action>
            <itemType>Content</itemType>
            <library>TGCS WCI Feed Service</library>
            <path>/Products</path>
            <displayTitle>ProductName</displayTitle>
            <authoringTemplate>TGCS WCI Feed Service/AT Product Info</authoringTemplate>
            <workflow name="WFSystem">
                <workflowStage>WFStageSystemPublish</workflowStage>
            </workflow>
            <publishDate>Thu, 07 Nov 2013 15:14:00 EET</publishDate>
            <expirationDate>Fri, 17 Jul 2014 11:00:00 EET</expirationDate>
        </item>
    </channel>
</rss>

```

Expecting:

```
<rss>
    <channel>
        <title>Products WCI Feed</title>
        <link>http://www.ibm.com/feeds/sample.rss</link>
        <description>Products WCI RSS Feed</description>
        <lastBuildDate>Thu, 07 Nov 2013 11:30:00 EET</lastBuildDate>
        <ibmfs:etag xmlns:ibmfs="http://purl.org/net/ibmfeedsvc/feedsvc/1.0">FeedServiceServlet</ibmfs:etag>
        <item>
            <title>Product Name</title>
            <link>http://www.source-ECM-Domain.com/item/sample.htm</link>
            <description>Product Description</description>
            <pubDate>Thu, 07 Nov 2013 11:45:00 EET</pubDate>
            <guid>UniqieIDFromECMUpTo256Char00</guid>
            <category>/Taxonomy1/Category10/Category100</category>
            <author>author@us.ibm.com</author>
            <ibmwcm:action>add</ibmwcm:action>
            <ibmwcm:itemType>Content</ibmwcm:itemType>
            <ibmwcm:library>TGCS WCI Feed Service</ibmwcm:library>
            <ibmwcm:path>/Products</ibmwcm:path>
            <ibmwcm:displayTitle>ProductName</ibmwcm:displayTitle>
            <ibmwcm:authoringTemplate>TGCS WCI Feed Service/AT Product Info</ibmwcm:authoringTemplate>
            <ibmwcm:workflow name="WFSystem">
                <ibmwcm:workflowStage>WFStageSystemPublish</ibmwcm:workflowStage>
            </ibmwcm:workflow>
            <ibmwcm:publishDate>Thu, 07 Nov 2013 15:14:00 EET</ibmwcm:publishDate>
            <ibmwcm:expirationDate>Fri, 17 Jul 2014 11:00:00 EET</ibmwcm:expirationDate>
        </item>
    </channel>
</rss>

```

XLST used:

```
<xsl:stylesheet version="1.0" 
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:template match="*">
    <!-- remove element prefix -->
    <xsl:element name="{local-name()}">
      <!-- process attributes -->
      <xsl:for-each select="@*">
        <!-- remove attribute prefix -->
        <xsl:attribute name="{local-name()}">
          <xsl:value-of select="."/>
        </xsl:attribute>
      </xsl:for-each>
      <xsl:apply-templates/>
    </xsl:element>
  </xsl:template>
</xsl:stylesheet>

```

Please help i want no XMLNS in the XML at all..

Thanks,
Srini