<?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: To import XML file (Hierarchical structured) into SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188703#M265911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it has a corresponding XSD file. Does it had to do something with XML and SAS dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jun 2014 21:26:13 GMT</pubDate>
    <dc:creator>Jessy</dc:creator>
    <dc:date>2014-06-11T21:26:13Z</dc:date>
    <item>
      <title>To import XML file (Hierarchical structured) into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188698#M265906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;Hi,&lt;BR /&gt;I am trying to import XML file (which looks like the one attached) into SAS EG 6.1, to convert into a SAS dataset. This attached XML file, I am importing is not a well formatted file, it has a hierarchical XML structure and hence using the libname statement does&amp;nbsp; not work.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;I have two options to do this,&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;1. To open the XML file and then save it as Excel file and then import it into SAS EG.&lt;BR /&gt;2. Use a SAS XML Mapper tool to import this XML file and then generate a XML map from the XML structure.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; -Copy the generated SAS code and use it in SAS EG 5.1, make necessary changes to the code and then go from there.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;Neither of the above options work for me, because it had to be done manually. I am supposed to write a program in SAS EG, to import that XML file into a SAS data set and this same program will be scheduled to run every month (automated program).&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;Can somebody suggest me on how to import a hierarchical XML file into SAS programmatically.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;Or, if you have any other options, like any other tools or software to work with XML files, please share here.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jun 2014 22:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188698#M265906</guid>
      <dc:creator>Jessy</dc:creator>
      <dc:date>2014-06-07T22:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: To import XML file (Hierarchical structured) into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188699#M265907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would follow the XML mapper process.&amp;nbsp; That is "writing a program" that you can run in EG to read the XML data.&amp;nbsp; It just happens that part of the program is the XML map file needed to make the XML engine work for this file.&amp;nbsp; If you need to you can create a program that uses a data step to write the xml map file.&lt;/P&gt;&lt;P&gt;filename xmlmap temp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; file xmlmap;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put '......';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;libname in xml 'xml.file.xml' xmlmap=xmlmap;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 13:07:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188699#M265907</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-06-08T13:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: To import XML file (Hierarchical structured) into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188700#M265908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;Thanks for looking into it. I am not an expert with XML stuff. Can you be more clear on this. How does this converts the XML into a SAS data set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 20:43:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188700#M265908</guid>
      <dc:creator>Jessy</dc:creator>
      <dc:date>2014-06-08T20:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: To import XML file (Hierarchical structured) into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188701#M265909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The XML libname engine will allow you to read XML files into datasets.&amp;nbsp; But for it to work you need to create instructions for how the items and attributes in your XML sheet map to SAS variables in the table.&amp;nbsp; You can begin reading more about it here:&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/engxml/65362/HTML/default/viewer.htm#n0w2dg7aw0yvgtn1o5ovjzjl7phc.htm" title="http://support.sas.com/documentation/cdl/en/engxml/65362/HTML/default/viewer.htm#n0w2dg7aw0yvgtn1o5ovjzjl7phc.htm"&gt;SAS(R) 9.3 XML LIBNAME Engine: User's Guide, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have created a map that you can use to convert your XML to a nice rectangular table structure (or multiple tables if need be) then you can being working with the data in SAS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 22:39:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188701#M265909</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-06-09T22:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: To import XML file (Hierarchical structured) into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188702#M265910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the map have any correspondence to an XSD file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 00:21:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188702#M265910</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-06-10T00:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: To import XML file (Hierarchical structured) into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188703#M265911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it has a corresponding XSD file. Does it had to do something with XML and SAS dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 21:26:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188703#M265911</guid>
      <dc:creator>Jessy</dc:creator>
      <dc:date>2014-06-11T21:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: To import XML file (Hierarchical structured) into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188704#M265912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The XSD file should help you generate your XML map to feed the map portion. You'll still have to read up on how to do this though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 22:08:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188704#M265912</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-06-11T22:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: To import XML file (Hierarchical structured) into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188705#M265913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since SAS9.3 there is an AUTOMAP= option for the XMLV2 libname engine. This will create the map file automatically for you. See more details here &lt;A href="http://support.sas.com/documentation/cdl/en/engxml/65362/HTML/default/viewer.htm#n0km8qcf0hv1kon1o7b345lkqk5k.htm" title="http://support.sas.com/documentation/cdl/en/engxml/65362/HTML/default/viewer.htm#n0km8qcf0hv1kon1o7b345lkqk5k.htm"&gt;SAS(R) 9.3 XML LIBNAME Engine: User's Guide, Second Edition&lt;/A&gt; the below sample code was taken from the doc:&lt;/P&gt;&lt;DIV style="font-family: Consolas; font-size: 11pt;"&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; myxml &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'C:\temp\xmlexample.xml'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; mymap &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'C:\temp\xmlexample_generate.map'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;; &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;libname&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; myxml &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;xmlv2&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; automap=replace &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;xmlmap&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=mymap; &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;contents&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=myxml._all_;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-family: Consolas; font-size: 11pt;"&gt; &lt;/DIV&gt;&lt;DIV style="font-family: Consolas; font-size: 11pt;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;Please be aware that this might create quite a number of datasets depending on the nesting levels of you XML, yours has quite some nesting. These data sets then need to be joined together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the XMLMAP= file is only a text file, in can be easily created using a DATA Step like the one below:&lt;/P&gt;&lt;DIV style="font-family: Consolas; font-size: 11pt;"&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; mymap &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;temp&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;_null_&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;cards&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;file&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; mymap;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;_infile_&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;cards4&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffc0;"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;SXLEMAP version="2.1"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- ############################################################ --&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TABLE description="CLASS" name="CLASS"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TABLE-PATH syntax="XPath"&amp;gt;/TABLE/CLASS&amp;lt;/TABLE-PATH&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;COLUMN name="Name"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;PATH syntax="XPath"&amp;gt;/TABLE/CLASS/Name&amp;lt;/PATH&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TYPE&amp;gt;character&amp;lt;/TYPE&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DATATYPE&amp;gt;string&amp;lt;/DATATYPE&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;LENGTH&amp;gt;7&amp;lt;/LENGTH&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/COLUMN&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;COLUMN name="Sex"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;PATH syntax="XPath"&amp;gt;/TABLE/CLASS/Sex&amp;lt;/PATH&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TYPE&amp;gt;character&amp;lt;/TYPE&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DATATYPE&amp;gt;string&amp;lt;/DATATYPE&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;LENGTH&amp;gt;1&amp;lt;/LENGTH&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/COLUMN&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/TABLE&amp;gt;&lt;BR /&gt;&amp;lt;/SXLEMAP&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;;;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;libname&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; myxml &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;xmlv2&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"c:\temp\myclass.xml"&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;xmlmap&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=mymap;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;copy&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=myxml &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=work;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;libname&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; myxml &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;clear&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 22:26:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188705#M265913</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2014-06-11T22:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: To import XML file (Hierarchical structured) into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188706#M265914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Bruno points out, the AUTOMAP option can produce a large number of SAS data sets in the process of flattening the XML file. If your XML files are of the same format, they should be able to use just 1 XML Mapper file. So by creating a custom XML Mapper file using the XML Mapper application, you could produce an XML Mapper file that creates only the data sets you need. There is no need to create the XML Mapper file via DATA step code. Once the file exists, just reference it from the XMLMAP option. I discuss these issues and have examples in my 2013 SAS Global Forum paper. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/resources/papers/proceedings13/024-2013.pdf"&gt;http://support.sas.com/resources/papers/proceedings13/024-2013.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the AUTOMAP option, see pages 5-10. For tailoring an XML Mapper file, see pages 14-16. Note that you can download all the example code I use in the paper from here: &lt;A href="http://support.sas.com/rnd/papers/sasgf13/024_2013_paper_examples.zip"&gt;http://support.sas.com/rnd/papers/sasgf13/024_2013_paper_examples.zip&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 14:17:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188706#M265914</guid>
      <dc:creator>BillM_SAS</dc:creator>
      <dc:date>2014-07-03T14:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: To import XML file (Hierarchical structured) into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188707#M265915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can you use the XSD file to import your XML file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 17:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188707#M265915</guid>
      <dc:creator>RobertHuey</dc:creator>
      <dc:date>2014-09-24T17:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: To import XML file (Hierarchical structured) into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188708#M265916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I never figured that out.&lt;/P&gt;&lt;P&gt;Bruno's method worked for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 18:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/188708#M265916</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-09-24T18:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: To import XML file (Hierarchical structured) into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/285739#M265917</link>
      <description>&lt;P&gt;I can also import schemes this way to make maps that work in XML mapper.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 04:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-import-XML-file-Hierarchical-structured-into-SAS/m-p/285739#M265917</guid>
      <dc:creator>ptimusk</dc:creator>
      <dc:date>2016-07-20T04:41:01Z</dc:date>
    </item>
  </channel>
</rss>

