Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3316

Re: Removing CDATA around XML Adds Unwanted Escaping

$
0
0

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.

 

<?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 3316

Trending Articles



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