Quantcast
Viewing all articles
Browse latest Browse all 9052

Re: XML encoding using udf java code

Hello,

It's a straight forward XSLT, not sure where u are struggling?

 

<?xml version="1.0" encoding="UTF-8"?>

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

   <xsl:output omit-xml-declaration="yes"/>

   <xsl:template match="@*|node()">

      <xsl:copy>

         <xsl:apply-templates select="@*|node()"/>

      </xsl:copy>

   </xsl:template>

   <xsl:template match="/">

        <xsl:value-of select="//Data" disable-output-escaping="yes"/>

   </xsl:template>

</xsl:stylesheet>

 

Note - adjust namespaces according to ur structure

 

Image may be NSFW.
Clik here to view.
Capture.PNG

 

Thanks

Amit Srivastava


Viewing all articles
Browse latest Browse all 9052

Trending Articles



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