Quantcast
Viewing all articles
Browse latest Browse all 3548

Re: Removing CDATA around XML Adds Unwanted Escaping

Hi Carlton,

 

I think i fix the namespace problem but i forgot about UTF-16 that is why it is failing. use below XSLT mapping to change the namespace from xmlns:enab="enablon" to 'http://isbdcapp86/Enablon7.8Train/rpc_literal.wsdl' and remove UTF-16 from source XML.

 

Based on your initial post i assume your source namespace is xmlns:enab="enablon" if this is not the source namespace you can adjust the XSLT mapping according to your source xml.

 

Adjust the below line with your source xml namespace which namespace of element ExportDataResponse.

 

<xsl:stylesheet version="1.0" xmlns:ns0="enablon" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

 

 

<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet version="1.0" xmlns:ns0="enablon" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">   <xsl:output omit-xml-declaration="yes" indent="yes" encoding="utf-8"/>   <xsl:template match="@*|node()">      <xsl:copy>         <xsl:apply-templates select="@*|node()"/>      </xsl:copy>   </xsl:template>   <xsl:template match="ns0:*">      <xsl:element name="ns0:{local-name()}" namespace="http://isbdcapp86/Enablon7.8Train/rpc_literal.wsdl">         <xsl:apply-templates select="@*|node()"/>      </xsl:element>   </xsl:template>   <xsl:template match="*">      <xsl:copy>         <xsl:apply-templates select="*"/>         <xsl:value-of select="substring-after(text(),&apos;?&gt;&apos;)" disable-output-escaping="yes"/>      </xsl:copy>   </xsl:template></xsl:stylesheet>

Regards,

Praveen.


Viewing all articles
Browse latest Browse all 3548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>