<?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>topic XML conversion not happening correctly in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion-not-happening-correctly/m-p/6099857#M1360174</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; I'm using method create_text in interface IF_IXML_DOCUMENT to convert the SAP data for sales orders into a XML file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The problem i'm facing is when there are special characters in these texts like &amp;amp; ,&amp;lt;,&amp;gt;,lt etc... it is not converting into correct format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg, if Material type is MAT&amp;amp;1 this method is returning MAT&amp;amp;amp .&lt;/P&gt;&lt;P&gt;similarly for other charaters .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea how to resolve it, would be very help full.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any OSS notes that needs to be applied .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Sep 2009 12:02:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-03T12:02:16Z</dc:date>
    <item>
      <title>XML conversion not happening correctly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion-not-happening-correctly/m-p/6099857#M1360174</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; I'm using method create_text in interface IF_IXML_DOCUMENT to convert the SAP data for sales orders into a XML file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The problem i'm facing is when there are special characters in these texts like &amp;amp; ,&amp;lt;,&amp;gt;,lt etc... it is not converting into correct format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg, if Material type is MAT&amp;amp;1 this method is returning MAT&amp;amp;amp .&lt;/P&gt;&lt;P&gt;similarly for other charaters .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea how to resolve it, would be very help full.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any OSS notes that needs to be applied .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 12:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion-not-happening-correctly/m-p/6099857#M1360174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-03T12:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: XML conversion not happening correctly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion-not-happening-correctly/m-p/6099858#M1360175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raghavendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use identical transformation if your need is to simply transform data to xml as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA itab TYPE TABLE OF ....

DATA xml_string TYPE string.

* Select data into ITAB....

CALL TRANSFORMATION ID
             SOURCE ITAB = ITAB[]
             RESULT XML xml_string.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 07:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion-not-happening-correctly/m-p/6099858#M1360175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T07:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: XML conversion not happening correctly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion-not-happening-correctly/m-p/6099859#M1360176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use CL_HTTP_UTILITY method ESCAPE_URL and UNESCAPE_URL.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 07:10:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion-not-happening-correctly/m-p/6099859#M1360176</guid>
      <dc:creator>Peter_Inotai</dc:creator>
      <dc:date>2009-09-09T07:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: XML conversion not happening correctly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion-not-happening-correctly/m-p/6099860#M1360177</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;In XML the value &amp;amp; gets converted to &amp;amp; amp ; &amp;lt;  to &amp;amp; lt ;  and &amp;gt; to &amp;amp; gt ; which is correct.&lt;/P&gt;&lt;P&gt;Why do you want it to be &amp;amp;?&lt;/P&gt;&lt;P&gt;When you view the file using Internet Explorer it will correctly show up as &amp;amp; and not &amp;amp; amp ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Progirl Progirl on Sep 9, 2009 1:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 07:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-conversion-not-happening-correctly/m-p/6099860#M1360177</guid>
      <dc:creator>farihakazi</dc:creator>
      <dc:date>2009-09-09T07:43:13Z</dc:date>
    </item>
  </channel>
</rss>

