<?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 How to create an xml file from a SAS table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-xml-file-from-a-SAS-table/m-p/776097#M246753</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;I want to create an xml file from a SAS table with a hierarchy.&amp;nbsp;&lt;BR /&gt;The table has the following 8 fields:&lt;BR /&gt;atmld, bankcode, bankbranchcode, schum, dt, monthreport, cuerrentdate, factorcode.&lt;BR /&gt;Example of how I would like the xml file to be displayed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shlomiohana_1-1635100430320.jpeg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64988i6381E2C9389C9F5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shlomiohana_1-1635100430320.jpeg" alt="shlomiohana_1-1635100430320.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I will ask for your help on how to write the code.&lt;/P&gt;</description>
    <pubDate>Sun, 24 Oct 2021 18:35:12 GMT</pubDate>
    <dc:creator>shlomiohana</dc:creator>
    <dc:date>2021-10-24T18:35:12Z</dc:date>
    <item>
      <title>How to create an xml file from a SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-xml-file-from-a-SAS-table/m-p/776097#M246753</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I want to create an xml file from a SAS table with a hierarchy.&amp;nbsp;&lt;BR /&gt;The table has the following 8 fields:&lt;BR /&gt;atmld, bankcode, bankbranchcode, schum, dt, monthreport, cuerrentdate, factorcode.&lt;BR /&gt;Example of how I would like the xml file to be displayed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shlomiohana_1-1635100430320.jpeg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64988i6381E2C9389C9F5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shlomiohana_1-1635100430320.jpeg" alt="shlomiohana_1-1635100430320.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I will ask for your help on how to write the code.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 18:35:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-xml-file-from-a-SAS-table/m-p/776097#M246753</guid>
      <dc:creator>shlomiohana</dc:creator>
      <dc:date>2021-10-24T18:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an xml file from a SAS table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-xml-file-from-a-SAS-table/m-p/776098#M246754</link>
      <description>Hi:&lt;BR /&gt;  The ways I know about are: &lt;BR /&gt;1) using the XML Libname engine with an XML Map&lt;BR /&gt;2) using the XML Libname engine with an XSL Schema&lt;BR /&gt;3) using a DATA step program&lt;BR /&gt;4) writing a custom tagset template&lt;BR /&gt;  You would need to read about how the XML Libname Engine works by default and then figure out which method works best for you. Seeing a copy of the final XML is useful, but without a sample of data, to see the structure of the current SAS data set, it is hard to make any constructive suggestions.&lt;BR /&gt;  Documentation for the XML Libname engine is here: &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/engxml/titlepage.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/engxml/titlepage.htm&lt;/A&gt; and an XML Map paper is here: &lt;A href="https://support.sas.com/resources/papers/proceedings13/124-2013.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings13/124-2013.pdf&lt;/A&gt; that shows the use of an XML Map for both import and export.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Sun, 24 Oct 2021 19:03:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-xml-file-from-a-SAS-table/m-p/776098#M246754</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-10-24T19:03:36Z</dc:date>
    </item>
  </channel>
</rss>

