<?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 Re: How to edit the XML string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-edit-the-xml-string/m-p/672366#M29632</link>
    <description>&lt;P&gt;Use one of the official libraries sXML or iXML.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenabap_xml_libs.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenabap_xml_libs.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jul 2018 05:35:01 GMT</pubDate>
    <dc:creator>retired_member</dc:creator>
    <dc:date>2018-07-16T05:35:01Z</dc:date>
    <item>
      <title>How to edit the XML string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-edit-the-xml-string/m-p/672365#M29631</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;I have an XML file (converted from adobe pdf), and I have to update few fields. &lt;/P&gt;
  &lt;P&gt;I have used below code,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'SMUM_XML_PARSE'&lt;BR /&gt; EXPORTING&lt;BR /&gt; xml_input = l_XML_RAW&lt;BR /&gt; TABLES&lt;BR /&gt; xml_table = g_t_xml_info&lt;BR /&gt; return = g_t_return.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;LOOP at g_t_xml_info ...&lt;/P&gt;
  &lt;P&gt;*update the fields from internal table&lt;/P&gt;
  &lt;P&gt;ENDLOOP&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; CALL TRANSFORMATION (`ID`)&lt;BR /&gt; SOURCE tab = g_t_xml_info[]&lt;BR /&gt; RESULT XML xml_out.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;But the xml_out is not the same format as the original XML string, It has tags as HIER, TYPE, CNAME, CVALUE(fields of g_t_xml_info) which was not there in original XML string. &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;How can I get the same format after updating the XML, Please let me know.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Sachin&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;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 05:26:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-edit-the-xml-string/m-p/672365#M29631</guid>
      <dc:creator>sachin_s_panchal</dc:creator>
      <dc:date>2018-07-16T05:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit the XML string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-edit-the-xml-string/m-p/672366#M29632</link>
      <description>&lt;P&gt;Use one of the official libraries sXML or iXML.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenabap_xml_libs.htm" target="test_blank"&gt;https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenabap_xml_libs.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 05:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-edit-the-xml-string/m-p/672366#M29632</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-07-16T05:35:01Z</dc:date>
    </item>
  </channel>
</rss>

