Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Newbie Question removing 'namespace elements' Newbie Question removing 'namespace elements'To: NULL Date: 5/12/2008 3:52:00 AM Hi, I'm trying to apply an XSLT to some XML to change the following. 1. Wrap a <root></root> element around all the XML (XML will later be read by SSIS and the XML reader apparently ignores root level elements so I am trying to promote all existing elements one level) 2. Remove the namespaces xmlns="http://webservices.ecircle-ag.com/ecm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" My XML is: And my XSLT is: <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exclude-result-prefixes="#default xsl xsi"> <xsl:template match="/"> <root> <xsl:copy-of select="."></xsl:copy-of> </root> </xsl:template> </xsl:stylesheet> The wrapping of <root></root> works but I cant strip out the namespaces (not sure if i'm using the correct terminology here). Any Ideas (NB very new to XML) Thanks Allen | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
