<?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: JSON to XML error Rest in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804033#M4423975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please open a new thread. I am trying to think of alternative algorithm to deal with this issue.&lt;/P&gt;&lt;P&gt;can you please share the payload which is causing the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anupam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Sep 2016 06:31:20 GMT</pubDate>
    <dc:creator>anupam_ghosh2</dc:creator>
    <dc:date>2016-09-02T06:31:20Z</dc:date>
    <item>
      <title>JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaq-p/11804009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using REST Adapter to receive JSON format message in PO.&lt;/P&gt;&lt;P&gt;the normal XML work for me, but when we have ATTRIBUTES in our strucutre then the json to xml conversion error is coming due to this in mapping the message gets failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My target xml strucutre like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;CalculationBaseQuantity unitCode="KG"&amp;gt;1&amp;lt;/CalculationBaseQuantity&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my source JSON&amp;nbsp; it is coming like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CalculationBaseQuantity": {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "-unitCode": "KG",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "#text": "1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After Seder adapter the message come in mapping as ...&lt;/P&gt;&lt;P&gt;&amp;lt;CalculationBaseQuantity&amp;gt;&amp;lt;-unitCode&amp;gt;KG&amp;lt;/-unitCode&amp;gt;&amp;lt;#text&amp;gt;1&amp;lt;/#text&amp;gt;&amp;lt;/CalculationBaseQuantity&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;due to this mapping getting failed as xml formatting issues.&lt;/P&gt;&lt;P&gt;error in mapping - &lt;SPAN style="color: #000000; font-size: 11.2px;"&gt;The content of elements must consist of well-formed character data or markup., BaseRuntimeException: The content of elements must consist of well-formed character data or markup., BaseRuntimeException: The content of elements must consist of well-formed character data or markup., &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does standard REST adapter wont support this functionality? does i need to go for Custom adapter only?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 10:13:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaq-p/11804009</guid>
      <dc:creator>former_member190536</dc:creator>
      <dc:date>2016-07-28T10:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804010#M4423952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Khaja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the source JSON is not well formatted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tats why getting the error while converting to XML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.freeformatter.com/json-to-xml-converter.html" title="https://www.freeformatter.com/json-to-xml-converter.html"&gt;https://www.freeformatter.com/json-to-xml-converter.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 10:43:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804010#M4423952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-28T10:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804011#M4423953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya i am doing from those tools only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 10:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804011#M4423953</guid>
      <dc:creator>former_member190536</dc:creator>
      <dc:date>2016-07-28T10:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804012#M4423954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Source Has the same JSON?it seems to be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might you require a module to convert it in SAP PI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 11:00:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804012#M4423954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-28T11:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804013#M4423955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so for this &amp;lt;CalculationBaseQuantity unitCode="KG"&amp;gt;1&amp;lt;/CalculationBaseQuantity&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how JSON to be expected? then I will correct this JSON and I will send test to PO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 11:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804013#M4423955</guid>
      <dc:creator>former_member190536</dc:creator>
      <dc:date>2016-07-28T11:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804014#M4423956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the below example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.json.org/example.html" title="http://www.json.org/example.html"&gt;JSON Example&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 11:09:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804014#M4423956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-28T11:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804015#M4423957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khaja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try with the escape character check box in sender REST CC. Try with that. If that solve your issue then its fine otherwise you need to write one custom module to handle this as the error is coming in the CC conversion ... # will not be treated as a valid xml attribute character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to write custom module exactly follow this and use module parameters in your CC accordingly -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="104873" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="Adapter Module: ReplaceString" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Apu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 11:33:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804015#M4423957</guid>
      <dc:creator>apu_das2</dc:creator>
      <dc:date>2016-07-28T11:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804016#M4423958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khaja,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you pls provide the complete json input and complete xml as required by mapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anupam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 14:37:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804016#M4423958</guid>
      <dc:creator>anupam_ghosh2</dc:creator>
      <dc:date>2016-07-28T14:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804017#M4423959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My source JSON&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: #333333;"&gt; "CalculationBaseQuantity": {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: #333333;"&gt; "-unitCode": "KG",&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: #333333;"&gt; "#text": "1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to convert into XML. &lt;/P&gt;&lt;P&gt;REST Adapter is converting into XML as follows..&lt;/P&gt;&lt;P&gt;&amp;lt;CalculationBaseQuantity&amp;gt;&amp;lt;unitCode&amp;gt;KG&amp;lt;/unitCode&amp;gt;&amp;lt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: #333333;"&gt;text&lt;/SPAN&gt; &amp;gt;1&amp;lt;/content&amp;gt;&amp;lt;/&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: #333333;"&gt;text&lt;/SPAN&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected XML in mapping required as follows..&lt;/P&gt;&lt;P&gt; &amp;lt;CalculationBaseQuantity unitCode="KG"&amp;gt;1&amp;lt;/CalculationBaseQuantity&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to this I am getting error in mapping as follows.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/1005842" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how should my JSON format required to form this correct xml?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jul 2016 06:00:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804017#M4423959</guid>
      <dc:creator>former_member190536</dc:creator>
      <dc:date>2016-07-31T06:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804018#M4423960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khaja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define this field as attribute in sender CC Custom XML/JSON conversion table and look how this behave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Apu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jul 2016 06:23:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804018#M4423960</guid>
      <dc:creator>apu_das2</dc:creator>
      <dc:date>2016-07-31T06:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804019#M4423961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khaja,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you please confirm if your source json is exactly shown below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "CalculationBaseQuantity": {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "-unitCode": "KG",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "#text": "1"&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please confirm version of PI and service pack you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anupam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jul 2016 16:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804019#M4423961</guid>
      <dc:creator>anupam_ghosh2</dc:creator>
      <dc:date>2016-07-31T16:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804020#M4423962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes Anupam, it is same as you mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CalculationBaseQuantity": {&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "-unitCode": "KG",&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "#text": "1"&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;}&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;tried with multiple cases like&amp;nbsp; with "@unitCode":"KG",&amp;nbsp; "$":"1"&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;"_unitCode":"KG",&amp;nbsp; "$":"1" &lt;/SPAN&gt;. etc...&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;in all cases xml is not forming attribute &lt;SPAN style="color: #333333; font-size: 12px;"&gt;field &lt;/SPAN&gt; unitCode&amp;nbsp; and in mapping getting failed.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using PO 4.0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 06:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804020#M4423962</guid>
      <dc:creator>former_member190536</dc:creator>
      <dc:date>2016-08-01T06:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804021#M4423963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khaja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We configured REST adapter as a receiver .It may useful below screen shot for the reference.&lt;/P&gt;&lt;P&gt;Java mapping required but before that get response in CDATA and do modification as per your message type .you may required few lines of code.&lt;/P&gt;&lt;P&gt;Once you see the response in CDATA , you build the logic accordingly.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/1009354" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 20:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804021#M4423963</guid>
      <dc:creator>praveen_vanga3</dc:creator>
      <dc:date>2016-08-04T20:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804022#M4423964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Issue is with REST sender adapter as per first post by Khaja.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anupam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 03:54:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804022#M4423964</guid>
      <dc:creator>anupam_ghosh2</dc:creator>
      <dc:date>2016-08-05T03:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804023#M4423965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khaja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using this option in REST adapter:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, Helvetica, 'Microsoft YaHei', Meiryo, 'Malgun Gothic', sans-serif; font-size: 13px; background-color: #e5e5e5;"&gt;Remove mangling of invalid name characters&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 13px; background-color: #e5e5e5; font-family: Arial, Helvetica, 'Microsoft YaHei', Meiryo, 'Malgun Gothic', sans-serif;"&gt;Remove escaped name start character&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sanjeev&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 06:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804023#M4423965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-08-05T06:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804024#M4423966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked it,&lt;/P&gt;&lt;P&gt;What I have to provide there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 07:12:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804024#M4423966</guid>
      <dc:creator>former_member190536</dc:creator>
      <dc:date>2016-08-05T07:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804025#M4423967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with the special characters that you are getting in field name, such as "&lt;SPAN style="color: #333333; font-size: 12px;"&gt;-&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 07:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804025#M4423967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-08-05T07:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804026#M4423968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khaja,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Please let us know in case the solution provided by &lt;SPAN style="font-size: 10.8px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="73574" data-externalid="" data-presence="null" data-userid="173933" data-username="sanjeevshekhar.singh" href="https://answers.sap.com/people/sanjeevshekhar.singh" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; text-decoration: underline !important; color: #3778c7; background: transparent;"&gt;Sanjeev &lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; was able to resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the updated java mapping to resolve the issue.&lt;/P&gt;&lt;P&gt;This needs to be applied in same OM before message mappings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;import java.io.BufferedReader;&lt;/P&gt;
&lt;P&gt;import java.io.FileInputStream;&lt;/P&gt;
&lt;P&gt;import java.io.FileNotFoundException;&lt;/P&gt;
&lt;P&gt;import java.io.FileOutputStream;&lt;/P&gt;
&lt;P&gt;import java.io.InputStream;&lt;/P&gt;
&lt;P&gt;import java.io.InputStreamReader;&lt;/P&gt;
&lt;P&gt;import java.io.OutputStream;&lt;/P&gt;
&lt;P&gt;import java.io.StringReader;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;import javax.xml.parsers.DocumentBuilder;&lt;/P&gt;
&lt;P&gt;import javax.xml.parsers.DocumentBuilderFactory;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;import org.w3c.dom.Document;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;import org.xml.sax.InputSource;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;import com.sap.aii.mapping.api.AbstractTransformation;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;import com.sap.aii.mapping.api.StreamTransformationException;&lt;/P&gt;
&lt;P&gt;import com.sap.aii.mapping.api.TransformationInput;&lt;/P&gt;
&lt;P&gt;import com.sap.aii.mapping.api.TransformationOutput;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;public class JsonToxml&amp;nbsp; extends AbstractTransformation{&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /**&lt;/P&gt;
&lt;P&gt;&amp;nbsp; * @param args&lt;/P&gt;
&lt;P&gt;&amp;nbsp; * @throws FileNotFoundException &lt;/P&gt;
&lt;P&gt;&amp;nbsp; * @throws StreamTransformationException &lt;/P&gt;
&lt;P&gt;&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; StringBuilder s=new StringBuilder("");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; BufferedReader reader;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; @Override&lt;/P&gt;
&lt;P&gt;&amp;nbsp; public void transform(TransformationInput arg0, TransformationOutput arg1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; throws StreamTransformationException {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; // TODO Auto-generated method stub&lt;/P&gt;
&lt;P&gt;&amp;nbsp; execute(arg0.getInputPayload().getInputStream(),arg1.getOutputPayload().getOutputStream());&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; public void adjustAttribute(char c) throws StreamTransformationException&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /******&lt;/P&gt;
&lt;P&gt;&amp;nbsp; * this function removes all text nodes and attribute nodes from payload&lt;/P&gt;
&lt;P&gt;&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; try&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; String t="&amp;gt;&amp;lt;"+c;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; String attributeName="",attributeValue="";&lt;/P&gt;
&lt;P&gt;&amp;nbsp; int p=s.indexOf(t);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(p&amp;gt;=0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; //attribute present&lt;/P&gt;
&lt;P&gt;&amp;nbsp; int y=s.indexOf("&amp;gt;",p+1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; attributeName=s.substring(p+3,y);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; int x=s.indexOf("&amp;lt;",y+1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; attributeValue=s.substring(y+1,x);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; int z=s.indexOf("&amp;gt;", x+1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(c=='-')&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; s=new StringBuilder(s.substring(0,p)+" "+attributeName+"=\""+attributeValue+"\"&amp;gt;"+s.substring(z+1,s.length()));&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; else if(c=='#')&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(attributeName.equalsIgnoreCase("text"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; s=new StringBuilder(s.substring(0,p+1)+attributeValue+s.substring(z+1,s.length()));&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; catch(Exception e)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; e.printStackTrace();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new StreamTransformationException(e.getMessage());&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void execute(InputStream in, OutputStream out) throws StreamTransformationException&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; boolean status=false;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BufferedReader reader = new BufferedReader(new InputStreamReader(in));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int c;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while((c=reader.read())!=-1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.append((char)c);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reader.close();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(s);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; String symbol[]={"-","#"};&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(int i=0;i&amp;lt;symbol.length;++i)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(s.indexOf("&amp;lt;"+symbol[i])&amp;gt;=0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; adjustAttribute(symbol[i].charAt(0));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(s);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //check if the xml is well formed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DocumentBuilder builder;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; builder = factory.newDocumentBuilder();&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Document doc = builder.parse( new InputSource( new StringReader( s.toString() ) ) ); &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("xml well formed");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out.write(s.toString().getBytes("UTF-8"));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch(Exception e)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.printStackTrace();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new StreamTransformationException(e.getMessage());&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Input &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a&amp;gt;&amp;lt;CalculationBaseQuantity&amp;gt;&amp;lt;-unitCode&amp;gt;KG&amp;lt;/-unitCode&amp;gt;&amp;lt;-FunitCode&amp;gt;KG1&amp;lt;/-FunitCode&amp;gt;&amp;lt;#text&amp;gt;1&amp;lt;/#text&amp;gt;&amp;lt;/CalculationBaseQuantity&amp;gt;&amp;lt;m&amp;gt;2&amp;lt;/m&amp;gt;&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a&amp;gt;&amp;lt;CalculationBaseQuantity unitCode="KG" FunitCode="KG1"&amp;gt;1&amp;lt;/CalculationBaseQuantity&amp;gt;&amp;lt;m&amp;gt;2&amp;lt;/m&amp;gt;&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Anupam &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 10:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804026#M4423968</guid>
      <dc:creator>anupam_ghosh2</dc:creator>
      <dc:date>2016-08-05T10:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804027#M4423969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anupam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This JAVA code working fine for me.&lt;/P&gt;&lt;P&gt;1. But I don't have external JAR files with me to create JAVA Mapping, so I did directly used this code in Graphical mapping in "Funcitons" tab. It is working fine. But in design time test using&amp;nbsp; "Test" tab then it is hanging and not responding. Do you have information abt tht?&lt;/P&gt;&lt;P&gt;2. How to create Java mapping directly in NWDS directly? (means with out import archives option)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Sanveev: Thanks for your response, I used those 2 fields in Sender REST Adapter, but it is not working.&lt;/P&gt;&lt;P&gt;I checked Escape invalid name set character and Mangle invalid character set and used Escape sequence "-" &lt;/P&gt;&lt;P&gt;then it is creating "--" characters in mapping.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2016 13:34:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804027#M4423969</guid>
      <dc:creator>former_member190536</dc:creator>
      <dc:date>2016-08-07T13:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: JSON to XML error Rest</title>
      <link>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804028#M4423970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khaja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies, my bad. I read the documentation the other way round.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 00:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-to-xml-error-rest/qaa-p/11804028#M4423970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-08-08T00:39:40Z</dc:date>
    </item>
  </channel>
</rss>

