<?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: Question to CL_XML_DOCUMENT: CREATE_WITH_DATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-to-cl-xml-document-create-with-data/m-p/2645952#M609459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can also use the approach explained in this thread for setting element attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3035542"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2007 08:02:57 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2007-08-29T08:02:57Z</dc:date>
    <item>
      <title>Question to CL_XML_DOCUMENT: CREATE_WITH_DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-to-cl-xml-document-create-with-data/m-p/2645950#M609457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use CL_XML_DOCUMENT: CREATE_WITH_DATA to create a XML file.&lt;/P&gt;&lt;P&gt;This works fine, but there is one thing that I would like to change:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The created XML has the following structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;?xml version="1.0" ?&amp;gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;DATA&amp;gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;item&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;KEY&amp;gt;ABC&amp;lt;/KEY&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;VALUE&amp;gt;00&amp;lt;/VALUE&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;/item&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it somehow possible to change the structure to the following?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;DATA&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;Item KEY="ABC" VALUE="00" /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can read a file that had a strucuture like the structure I would like to&lt;/P&gt;&lt;P&gt;have with CL_XML_DOCUMENT-&amp;gt;IMPORT_FROM_FILE , so it should be a valid&lt;/P&gt;&lt;P&gt;represantion of a XML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 10:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-to-cl-xml-document-create-with-data/m-p/2645950#M609457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T10:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Question to CL_XML_DOCUMENT: CREATE_WITH_DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-to-cl-xml-document-create-with-data/m-p/2645951#M609458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I found the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CRETE_WITH_DATA does only build elements. What I need is elements with attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am now building the XML by looping over my internal tabel and building the elements and setting the attributes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 07:43:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-to-cl-xml-document-create-with-data/m-p/2645951#M609458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T07:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Question to CL_XML_DOCUMENT: CREATE_WITH_DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-to-cl-xml-document-create-with-data/m-p/2645952#M609459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can also use the approach explained in this thread for setting element attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3035542"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 08:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-to-cl-xml-document-create-with-data/m-p/2645952#M609459</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-08-29T08:02:57Z</dc:date>
    </item>
  </channel>
</rss>

