<?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: Multi Layered XML in 46C in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/multi-layered-xml-in-46c/m-p/6789117#M1465700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph. Were you able to solve this. Pls help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Feb 2011 20:13:41 GMT</pubDate>
    <dc:creator>gulammohammed_d</dc:creator>
    <dc:date>2011-02-23T20:13:41Z</dc:date>
    <item>
      <title>Multi Layered XML in 46C</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multi-layered-xml-in-46c/m-p/6789116#M1465699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings ~&lt;/P&gt;&lt;P&gt;I have been looking at some sample code on exporting data from SAP to XML pass an internal table to FM's SDIXML_DATA_TO_DOM and then to SDIXML_DOM_TO_XML.  Since tables are flat the structure always seems to be pretty flat, I'm interested to create a layered XML output such as...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;?xml version="1.0" encoding="iso-8859-1" ?&amp;gt;
&amp;lt;ORDERS_HEADER&amp;gt;
  &amp;lt;sales_order&amp;gt;123456789&amp;lt;/sales_order&amp;gt;
  &amp;lt;sales_date&amp;gt;20100410&amp;lt;/sales_date&amp;gt;
  &amp;lt;ORDERS_DETAILS&amp;gt;
    &amp;lt;line_id&amp;gt;1&amp;lt;/line_id&amp;gt;
    &amp;lt;material&amp;gt;12345678&amp;lt;/material&amp;gt;
  &amp;lt;/ORDERS_DETAILS&amp;gt;
  &amp;lt;ORDERS_DETAILS&amp;gt;
    &amp;lt;line_id&amp;gt;2&amp;lt;/line_id&amp;gt;
    &amp;lt;material&amp;gt;987654&amp;lt;/material&amp;gt;
  &amp;lt;/ORDERS_DETAILS&amp;gt;
&amp;lt;/ORDERS_HEADER&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where I have header data with multiple iterations of detail data, the above desired output has only one order but ideal I'd like to fill a format such as this with 1,000s of orders with numerous lines on each .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any examples or insight is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 19:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multi-layered-xml-in-46c/m-p/6789116#M1465699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-08T19:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Layered XML in 46C</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multi-layered-xml-in-46c/m-p/6789117#M1465700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph. Were you able to solve this. Pls help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 20:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multi-layered-xml-in-46c/m-p/6789117#M1465700</guid>
      <dc:creator>gulammohammed_d</dc:creator>
      <dc:date>2011-02-23T20:13:41Z</dc:date>
    </item>
  </channel>
</rss>

