<?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 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-XML-file/m-p/367372#M87445</link>
    <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;The Danish government (TAX) ask us to deliver one .XML file for each account a customer have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oure environment is:&lt;/P&gt;&lt;P&gt;Windows server 2008&lt;/P&gt;&lt;P&gt;SAS Enterprice client 7.1 64 bit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two questions:&lt;/P&gt;&lt;P&gt;1) Is it possible to create an .xml file with the Basic SAS tools, as the one that is add as an exsempel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) If not, do I need a more advance SAS Tool to create a file like attach file? If Yes, can you suggest one or to tools and an ensample of script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx in advance&lt;/P&gt;&lt;P&gt;/ Henrik&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13957i81AC847AF6DFADC7/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Test_xml.JPG" title="Test_xml.JPG" /&gt;</description>
    <pubDate>Thu, 15 Jun 2017 14:01:11 GMT</pubDate>
    <dc:creator>henrik_liebach</dc:creator>
    <dc:date>2017-06-15T14:01:11Z</dc:date>
    <item>
      <title>How to create an XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-XML-file/m-p/367372#M87445</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;The Danish government (TAX) ask us to deliver one .XML file for each account a customer have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oure environment is:&lt;/P&gt;&lt;P&gt;Windows server 2008&lt;/P&gt;&lt;P&gt;SAS Enterprice client 7.1 64 bit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two questions:&lt;/P&gt;&lt;P&gt;1) Is it possible to create an .xml file with the Basic SAS tools, as the one that is add as an exsempel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) If not, do I need a more advance SAS Tool to create a file like attach file? If Yes, can you suggest one or to tools and an ensample of script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx in advance&lt;/P&gt;&lt;P&gt;/ Henrik&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13957i81AC847AF6DFADC7/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Test_xml.JPG" title="Test_xml.JPG" /&gt;</description>
      <pubDate>Thu, 15 Jun 2017 14:01:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-XML-file/m-p/367372#M87445</guid>
      <dc:creator>henrik_liebach</dc:creator>
      <dc:date>2017-06-15T14:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an XML file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-XML-file/m-p/367382#M87448</link>
      <description>&lt;P&gt;I don't know where my last reply got to. &amp;nbsp;Anyways, you can use SAS to create basic XML output, see here for Google response 1:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings12/253-2012.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings12/253-2012.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how good it is I don't know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I would say is that XML is all text, so you can create any type of text output you like and apply tags and such like. &amp;nbsp;E.g.:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  set sashelp.class end=last;
  file "want.xml";
  if _n_=1 then put "&amp;lt;start&amp;gt;";
  put cats("&amp;lt;name&amp;gt;",name,"&amp;lt;/name&amp;gt;");
  if last then put "&amp;lt;/start&amp;gt;";
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Jun 2017 14:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-an-XML-file/m-p/367382#M87448</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-15T14:25:19Z</dc:date>
    </item>
  </channel>
</rss>

