<?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: How to import XML file from website in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-import-XML-file-from-website/m-p/533877#M6243</link>
    <description>&lt;P&gt;Do you have the XML Mapper application installed? If you do or can install it then you'll find it normally makes creating an XML Map quite an easy process. If not then you'll have to hand-craft one yourself but you'd need to understand how the XML is structured and how you want it to be represented in your Sas Data Set which is a bit more challenging.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's a good paper on it here -&amp;gt;&amp;nbsp;&lt;A href="https://www.lexjansen.com/nesug/nesug10/ff/ff14.pdf" target="_blank"&gt;https://www.lexjansen.com/nesug/nesug10/ff/ff14.pdf&lt;/A&gt; which is from 2010 but I don't think the Mapper application has changed much if at all since then.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Feb 2019 10:05:58 GMT</pubDate>
    <dc:creator>ChrisBrooks</dc:creator>
    <dc:date>2019-02-08T10:05:58Z</dc:date>
    <item>
      <title>How to import XML file from website</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-import-XML-file-from-website/m-p/533868#M6241</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I encountered a problem while importing XML file from website. Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename test url 'https://www.nbp.pl/kursy/xml/a027z190207.xml';
libname test xml;

proc copy in=test out=work; 
run;

proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The code above causes an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Przechwytywanie.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26974i50C793BFA1595E6C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Przechwytywanie.PNG" alt="Przechwytywanie.PNG" /&gt;&lt;/span&gt;As I understand the problem is with handshake/certification. To handle it I found a new source that uses api:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename test url 'http://api.nbp.pl/api/exchangerates/tables/A/?format=xml';
libname test xml;

proc copy in=test out=work; 
run;

proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It causes an error suggesting usin XMLMap. Would you be able to help? I know that it could be done in Python or R, but I would really like to use SAS on this. Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 08:51:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-import-XML-file-from-website/m-p/533868#M6241</guid>
      <dc:creator>damiankowalik</dc:creator>
      <dc:date>2019-02-08T08:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to import XML file from website</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-import-XML-file-from-website/m-p/533877#M6243</link>
      <description>&lt;P&gt;Do you have the XML Mapper application installed? If you do or can install it then you'll find it normally makes creating an XML Map quite an easy process. If not then you'll have to hand-craft one yourself but you'd need to understand how the XML is structured and how you want it to be represented in your Sas Data Set which is a bit more challenging.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's a good paper on it here -&amp;gt;&amp;nbsp;&lt;A href="https://www.lexjansen.com/nesug/nesug10/ff/ff14.pdf" target="_blank"&gt;https://www.lexjansen.com/nesug/nesug10/ff/ff14.pdf&lt;/A&gt; which is from 2010 but I don't think the Mapper application has changed much if at all since then.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 10:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-import-XML-file-from-website/m-p/533877#M6243</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2019-02-08T10:05:58Z</dc:date>
    </item>
  </channel>
</rss>

