on 09-21-2015 11:16 AM
Hi Gurus, I have a requirement wherein we need to send escaped characters to the target system. For example we have the following as an output: test We need to have the output below for the sample message above: <root> <text>test</text> </root> I understand that CDATA can be used to perform the reverse process wherein the escaped characters can be 'unescaped'. Can we do this via XSL?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
There is no need for CDATA.
For escaped output, you need to convert into corresponding XSL, and for doing that, please use the following tag.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
For addtional info on converting in XSL, please refer below link:
Just for further info : "<" gets converted to "<", ">" gets converted into ">", etc. in XSL.
Regards,
Souvik
Hi,
try as per the below link
http://stackoverflow.com/questions/1162352/converting-xml-to-escaped-text-in-xslt
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.