<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: CDATA in xml file in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596855#M1096765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;For some part of my xml file i need the '&amp;amp;lt' '&amp;amp;gt' instead of &amp;lt; and &amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well you can always find and replace '&amp;lt;' &amp;amp; '&amp;gt;' with '&amp;amp;lt' and '&amp;amp;gt'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranjit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2007 09:49:31 GMT</pubDate>
    <dc:creator>ranjit_deshmukh</dc:creator>
    <dc:date>2007-08-02T09:49:31Z</dc:date>
    <item>
      <title>CDATA in xml file</title>
      <link>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaq-p/2596853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me the best way to transform parts of my xml file as CDATA ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some part of my xml file i need the '&amp;amp;lt' '&amp;amp;gt' instead of &amp;lt; and &amp;gt; . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 09:45:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaq-p/2596853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T09:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: CDATA in xml file</title>
      <link>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596854#M1096764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can do it in mapping &lt;/P&gt;&lt;P&gt;just add CDATA tags with UDF for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;michal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 09:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596854#M1096764</guid>
      <dc:creator>MichalKrawczyk</dc:creator>
      <dc:date>2007-08-02T09:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: CDATA in xml file</title>
      <link>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596855#M1096765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;For some part of my xml file i need the '&amp;amp;lt' '&amp;amp;gt' instead of &amp;lt; and &amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well you can always find and replace '&amp;lt;' &amp;amp; '&amp;gt;' with '&amp;amp;lt' and '&amp;amp;gt'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranjit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 09:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596855#M1096765</guid>
      <dc:creator>ranjit_deshmukh</dc:creator>
      <dc:date>2007-08-02T09:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: CDATA in xml file</title>
      <link>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596856#M1096766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi michal &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats sounds like a clever and simple solution, exactly what should my UDF do to my xml fields? It would be great if u can shown with a simple example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thankls a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 09:54:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596856#M1096766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T09:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: CDATA in xml file</title>
      <link>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596857#M1096767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do u want to add extra XML elements in your target XML document (produced from Mapping)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 09:54:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596857#M1096767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T09:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: CDATA in xml file</title>
      <link>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596858#M1096768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No aravind , i want some of my xml fileds to be included in the [!CDATA....] tag so that i can escape &amp;lt; and &amp;gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 09:56:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596858#M1096768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T09:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: CDATA in xml file</title>
      <link>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596859#M1096769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can even use concat function from XI standard functions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add [!CDATA.. at the begining &lt;/P&gt;&lt;P&gt;and .] at the end of your string &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW &lt;/P&gt;&lt;P&gt;you need to try  [!CDATA.. or [[!CDATA.. or [[[!CDATA.. but one of them will work &lt;/P&gt;&lt;P&gt;for sure as I did that a few times in message mappings &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;michal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 10:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596859#M1096769</guid>
      <dc:creator>MichalKrawczyk</dc:creator>
      <dc:date>2007-08-02T10:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: CDATA in xml file</title>
      <link>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596860#M1096770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi michal &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using [[!CDATA in different formats as you suggested but none is producing the desired result. Can you identify which format you have exactly used and let me know please? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my xml file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ns0:QueryString_Initial_MT xmlns:ns0="urn:ABG.com/EDI/PurchaseOrders"&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;pin/&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;user_id/&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;pwd/&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;orders_lines&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;isbn&amp;gt;sfdg&amp;lt;/isbn&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;record_dues&amp;gt;fgfh&amp;lt;/record_dues&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;part_supply&amp;gt;fdg&amp;lt;/part_supply&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;order_quantity&amp;gt;fdds&amp;lt;/order_quantity&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;order_line_reference&amp;gt;ffg&amp;lt;/order_line_reference&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;special_instructions&amp;gt;f&amp;lt;/special_instructions&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;affiliate_id&amp;gt;dfg&amp;lt;/affiliate_id&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;promotional_code&amp;gt;df&amp;lt;/promotional_code&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/orders_lines&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;orders_ref&amp;gt;f&amp;lt;/orders_ref&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ns0:QueryString_Initial_MT&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the &amp;lt;orders_line&amp;gt; tag and its sub tags to be presented as a string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even an XSLT for it be a great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 11:03:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596860#M1096770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T11:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: CDATA in xml file</title>
      <link>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596861#M1096771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi michal &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By adding the &amp;lt;![CDATA[ tags i am able to see that everything in between these tags will be trated as a string, but how can i put an entire node with subnodes into these tags using the concat function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 11:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596861#M1096771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T11:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: CDATA in xml file</title>
      <link>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596862#M1096772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 12:58:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596862#M1096772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T12:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: CDATA in xml file</title>
      <link>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596863#M1096773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sudheer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as per your requirement, the following XSLT would help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:ABG.com/EDI/PurchaseOrders"&amp;gt;
	&amp;lt;xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/&amp;gt;
	&amp;lt;xsl:template match="@*|node()"&amp;gt;
		&amp;lt;xsl:copy&amp;gt;
			&amp;lt;xsl:apply-templates select="@*|node()"/&amp;gt;
		&amp;lt;/xsl:copy&amp;gt;
	&amp;lt;/xsl:template&amp;gt;
	&amp;lt;xsl:template match="orders_lines"&amp;gt;
		&amp;lt;xsl:text disable-output-escaping="yes"&amp;gt;&amp;lt;![CDATA[&amp;lt;![CDATA[
		&lt;COPY&gt;
			&lt;APPLY-TEMPLATES select="@*|node()"&gt;&lt;/APPLY-TEMPLATES&gt;
		&lt;/COPY&gt;
		&lt;TEXT disable-output-escaping="yes"&gt;]]&lt;/TEXT&gt;
		&lt;TEXT disable-output-escaping="yes"&gt;&amp;gt;&lt;/TEXT&gt;
	
]]&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it is strange not to have a wrapping tag around the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wanted only the subtags of &amp;lt;orders_lines&amp;gt; to be inserted in the string, just exchange the &amp;lt;xsl:copy&amp;gt; and &amp;lt;CDATA&amp;gt; tags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:ABG.com/EDI/PurchaseOrders"&amp;gt;
	&amp;lt;xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/&amp;gt;
	&amp;lt;xsl:template match="@*|node()"&amp;gt;
		&amp;lt;xsl:copy&amp;gt;
			&amp;lt;xsl:apply-templates select="@*|node()"/&amp;gt;
		&amp;lt;/xsl:copy&amp;gt;
	&amp;lt;/xsl:template&amp;gt;
	&amp;lt;xsl:template match="orders_lines"&amp;gt;
		&amp;lt;xsl:copy&amp;gt;
			&amp;lt;xsl:text disable-output-escaping="yes"&amp;gt;&amp;lt;![CDATA[&amp;lt;![CDATA[
			&lt;APPLY-TEMPLATES select="@*|node()"&gt;&lt;/APPLY-TEMPLATES&gt;
			&lt;TEXT disable-output-escaping="yes"&gt;]]&lt;/TEXT&gt;
			&lt;TEXT disable-output-escaping="yes"&gt;&amp;gt;&lt;/TEXT&gt;
		
	
]]&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Henrique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 14:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cdata-in-xml-file/qaa-p/2596863#M1096773</guid>
      <dc:creator>henrique_pinto</dc:creator>
      <dc:date>2007-08-07T14:26:11Z</dc:date>
    </item>
  </channel>
</rss>

