How to Remove XMLNS From a Tag
The XMLNS attribute is used to designate the XML namespace for a Web page. This attribute is required in XHTML but not in HTML or HTML5. The XMLNS attribute is always placed at the beginning of the page's code, which is often referred to as the tag location. If you are not using XHTML and want to remove the tag from a page that has already been built, you can do so by entering a separate command.
Instructions
-
-
1
Open the code of the page that has the XMLNS declaration you want to remove. The command will be within the first few lines of the page, if not the first.
-
2
Type the command that creates a new, temporary template that removes the namespace identification from your page:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="xml" version="1.0" encoding="UTF-8" />
<xsl:template match="*">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="@* | node()"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>This code should be placed at the beginning of your page, You should substitute the URL in the first line with the URL currently in your XMLNS statement.
-
-
3
Save the page and upload it your site's servers. If you host the server yourself, you can use an FTP program, or you can use your site's administrative web panel if you have a Web host.
-
1