<?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: export dataset to xml in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/export-dataset-to-xml/m-p/14290#M3304</link>
    <description>Hi:&lt;BR /&gt;
  In SAS 9.1.3 and the SAS XML Libname Engine (SXLE), you can only use an XML Map for import (from XML to SAS). With SAS 9.2 and the SAS XML Libname Engine (SXLE) you can use an XML Map for both import (XML to SAS) and export (SAS to XML).&lt;BR /&gt;
 &lt;BR /&gt;
  Documentation for SXLE can be found here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/xmlengine/index.html" target="_blank"&gt;http://support.sas.com/rnd/base/xmlengine/index.html&lt;/A&gt; (pick your version) and the "what's new" for SAS 9.2 outlines the new features in SAS 9.2:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/whatsnew/62580/HTML/default/engxmlwhatsnew902.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/whatsnew/62580/HTML/default/engxmlwhatsnew902.htm&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  For specifics on which features are still "pre-production", refer to this Tech Support note:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/33/793.html" target="_blank"&gt;http://support.sas.com/kb/33/793.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  If you are still running SAS 9.1.3, then your only method for creating custom (hierarchical) XML (such as what you show in your post with the inclusion of the &amp;lt;personal_info&amp;gt; tag) is to create a custom tagset template for use with SXLE, as described here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a002565723.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a002565723.htm&lt;/A&gt;  &lt;BR /&gt;
or in these user group papers:&lt;BR /&gt;
&lt;A href="http://www.lexjansen.com/pharmasug/2006/technicaltechniques/tt24.pdf" target="_blank"&gt;http://www.lexjansen.com/pharmasug/2006/technicaltechniques/tt24.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi29/119-29.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi29/119-29.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
And, on using the XML Mapper to create an XML Map file for use with SXLE refer to these links:&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/099-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/099-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://analytics.ncsu.edu/sesug/2007/CC12.pdf" target="_blank"&gt;http://analytics.ncsu.edu/sesug/2007/CC12.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.lexjansen.com/pharmasug/2004/handsonworkshops/hw03.pdf" target="_blank"&gt;http://www.lexjansen.com/pharmasug/2004/handsonworkshops/hw03.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
    <pubDate>Mon, 03 May 2010 19:18:48 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-05-03T19:18:48Z</dc:date>
    <item>
      <title>export dataset to xml</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/export-dataset-to-xml/m-p/14289#M3303</link>
      <description>Hey All,&lt;BR /&gt;
&lt;BR /&gt;
I am trying to export a dataset to XML.&lt;BR /&gt;
&lt;BR /&gt;
I am able to create XML like this:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;&lt;CASE&gt;&lt;BR /&gt;
  &lt;NAME&gt;xxx&lt;/NAME&gt;&lt;BR /&gt;
  &lt;AGE&gt;xxx&lt;/AGE&gt;&lt;BR /&gt;
&lt;/CASE&gt;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
But the layout is not quite what I want. How can I create XML like this:&lt;BR /&gt;
&lt;B&gt;&lt;CASE&gt;&lt;BR /&gt;
  &lt;NAME&gt;xxx&lt;/NAME&gt;&lt;BR /&gt;
  &lt;PERSONAL_INFO&gt;&lt;BR /&gt;
     &lt;AGE&gt;xxx&lt;/AGE&gt;&lt;BR /&gt;
  &lt;/PERSONAL_INFO&gt;&lt;BR /&gt;
&lt;/CASE&gt;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
I tried to use XMLMap but don't know how to generate map file.</description>
      <pubDate>Mon, 03 May 2010 17:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/export-dataset-to-xml/m-p/14289#M3303</guid>
      <dc:creator>neilxu</dc:creator>
      <dc:date>2010-05-03T17:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: export dataset to xml</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/export-dataset-to-xml/m-p/14290#M3304</link>
      <description>Hi:&lt;BR /&gt;
  In SAS 9.1.3 and the SAS XML Libname Engine (SXLE), you can only use an XML Map for import (from XML to SAS). With SAS 9.2 and the SAS XML Libname Engine (SXLE) you can use an XML Map for both import (XML to SAS) and export (SAS to XML).&lt;BR /&gt;
 &lt;BR /&gt;
  Documentation for SXLE can be found here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/xmlengine/index.html" target="_blank"&gt;http://support.sas.com/rnd/base/xmlengine/index.html&lt;/A&gt; (pick your version) and the "what's new" for SAS 9.2 outlines the new features in SAS 9.2:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/whatsnew/62580/HTML/default/engxmlwhatsnew902.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/whatsnew/62580/HTML/default/engxmlwhatsnew902.htm&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  For specifics on which features are still "pre-production", refer to this Tech Support note:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/33/793.html" target="_blank"&gt;http://support.sas.com/kb/33/793.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  If you are still running SAS 9.1.3, then your only method for creating custom (hierarchical) XML (such as what you show in your post with the inclusion of the &amp;lt;personal_info&amp;gt; tag) is to create a custom tagset template for use with SXLE, as described here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a002565723.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a002565723.htm&lt;/A&gt;  &lt;BR /&gt;
or in these user group papers:&lt;BR /&gt;
&lt;A href="http://www.lexjansen.com/pharmasug/2006/technicaltechniques/tt24.pdf" target="_blank"&gt;http://www.lexjansen.com/pharmasug/2006/technicaltechniques/tt24.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi29/119-29.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi29/119-29.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
And, on using the XML Mapper to create an XML Map file for use with SXLE refer to these links:&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/099-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/099-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://analytics.ncsu.edu/sesug/2007/CC12.pdf" target="_blank"&gt;http://analytics.ncsu.edu/sesug/2007/CC12.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.lexjansen.com/pharmasug/2004/handsonworkshops/hw03.pdf" target="_blank"&gt;http://www.lexjansen.com/pharmasug/2004/handsonworkshops/hw03.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 03 May 2010 19:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/export-dataset-to-xml/m-p/14290#M3304</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-05-03T19:18:48Z</dc:date>
    </item>
  </channel>
</rss>

