<?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 capture columns from xml file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/capture-columns-from-xml-file/m-p/412586#M100900</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I found the forum today.&lt;/P&gt;&lt;P&gt;I want to import multiple files into SAS environement and I am not being successful trying all option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the column names are not aligned and it is very difficult to retrieve the data. can you please help me how to proceed to capture data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the &amp;nbsp;xml file is not supporting, therefore I attach three sample within the excel file.&lt;/P&gt;</description>
    <pubDate>Sat, 11 Nov 2017 17:26:40 GMT</pubDate>
    <dc:creator>Sauda</dc:creator>
    <dc:date>2017-11-11T17:26:40Z</dc:date>
    <item>
      <title>capture columns from xml file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/capture-columns-from-xml-file/m-p/412586#M100900</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I found the forum today.&lt;/P&gt;&lt;P&gt;I want to import multiple files into SAS environement and I am not being successful trying all option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the column names are not aligned and it is very difficult to retrieve the data. can you please help me how to proceed to capture data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the &amp;nbsp;xml file is not supporting, therefore I attach three sample within the excel file.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2017 17:26:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/capture-columns-from-xml-file/m-p/412586#M100900</guid>
      <dc:creator>Sauda</dc:creator>
      <dc:date>2017-11-11T17:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: capture columns from xml file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/capture-columns-from-xml-file/m-p/412639#M100916</link>
      <description>&lt;P&gt;Proper xml can usually be read directly as a set of tables with the &lt;STRONG&gt;xmlv2&lt;/STRONG&gt; LIBNAME engine. This is how I read an xml file describing polygons produced by Google Earth:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xm xmlv2 "&amp;amp;path.\Test.kml" 
    automap=replace xmlmap="&amp;amp;path.\kmlTest.map";

proc sql;
create table pm as
select  
    Pl.name, 
    Po.Polygon_ORDINAL as segment, 
    LR.coordinates length=32000 
from    
    xm.Placemark as Pl natural join 
    xm.Polygon as Po  natural join
    xm.outerBoundaryIs natural join
    xm.LinearRing as LR;
quit;

libname xm clear;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 12 Nov 2017 04:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/capture-columns-from-xml-file/m-p/412639#M100916</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-12T04:18:25Z</dc:date>
    </item>
  </channel>
</rss>

