<?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: WRAP a XML file within CDATA in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/wrap-a-xml-file-within-cdata/qaa-p/6688863#M2431782</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Have got the solution to this problem, so closing the forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Mar 2010 11:30:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-16T11:30:46Z</dc:date>
    <item>
      <title>WRAP a XML file within CDATA</title>
      <link>https://community.sap.com/t5/technology-q-a/wrap-a-xml-file-within-cdata/qaq-p/6688862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to wrap Individual node data of an XML file within CDATA tag and then to wrap the whole XML file within CDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example if my XML :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf=8"?&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;MAIN_NODE&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;PHONENUMBER&amp;gt;+31640642821&amp;lt;/PHONENUMBER&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;PLANT&amp;gt;NL93&amp;lt;/PLANT&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;ORDER&amp;gt;21019410&amp;lt;/ORDER&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;PARNR&amp;gt;300146&amp;lt;/PARNR&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;PROCESS&amp;gt;SPS&amp;lt;/PROCESS&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/MAIN_NODE&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The I need to WRAP whole XML within CDATA and also individual node data within CDATA tag, so finally my XML should appear something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf=8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;SAPMESSAGE&amp;gt;&lt;/P&gt;&lt;P&gt;-&amp;lt;BODYTEXT&amp;gt;&amp;lt;![CDATA[&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf=8"?&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;MAIN_NODE&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;PHONENUMBER&amp;gt;&amp;lt;![CDATA[ +31640642821 ]]&amp;lt;/PHONENUMBER&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;PLANT&amp;gt;&amp;lt;![CDATA[ NL93 ]]&amp;lt;/PLANT&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ORDER&amp;gt;&amp;lt;![CDATA[ 21019410 ]]&amp;lt;/ORDER&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;PARNR&amp;gt;&amp;lt;![CDATA[ 300146 ]]&amp;lt;/PARNR&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;PROCESS&amp;gt;&amp;lt;![CDATA[ SPS&amp;lt; ]]/PROCESS&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/MAIN_NODE&amp;gt;&lt;/P&gt;&lt;P&gt;     ]]&amp;gt;&amp;lt;/BODYTEXT&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;/SAPMESSAGE&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ravi Santani on Mar 15, 2010 3:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 14:18:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/wrap-a-xml-file-within-cdata/qaq-p/6688862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T14:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: WRAP a XML file within CDATA</title>
      <link>https://community.sap.com/t5/technology-q-a/wrap-a-xml-file-within-cdata/qaa-p/6688863#M2431782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Have got the solution to this problem, so closing the forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 11:30:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/wrap-a-xml-file-within-cdata/qaa-p/6688863#M2431782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T11:30:46Z</dc:date>
    </item>
  </channel>
</rss>

