<?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 pull an XML file? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277105#M55593</link>
    <description>&lt;P&gt;Okay,here's the scenario. The XML file is from the Cisco Prime API. What&amp;nbsp;I am&amp;nbsp;doing in order to get the XML file is by right clicking and then "save page as...".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, what I am askin' / want to know is if there's a way in SAS in order to automatically generate the XML file.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2016 03:58:24 GMT</pubDate>
    <dc:creator>jei</dc:creator>
    <dc:date>2016-06-14T03:58:24Z</dc:date>
    <item>
      <title>How to pull/generate an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277083#M55586</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask if SAS have a tool to pull an XML file automatically OR are there scripts that can pull the XML file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 03:59:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277083#M55586</guid>
      <dc:creator>jei</dc:creator>
      <dc:date>2016-06-14T03:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277095#M55588</link>
      <description>&lt;P&gt;What do you mean by 'pull an XML file'? Are you trying to read it into a dataset?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, try the XML Mapper tool.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/engxml/64990/HTML/default/viewer.htm#n10gcahtsna7r7n1rbn3wcxk6zbh.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/engxml/64990/HTML/default/viewer.htm#n10gcahtsna7r7n1rbn3wcxk6zbh.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 02:41:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277095#M55588</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-14T02:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277099#M55590</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I already used an XML Mapper but what we want is to generate the XML file so that the data will update automatically</description>
      <pubDate>Tue, 14 Jun 2016 03:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277099#M55590</guid>
      <dc:creator>jei</dc:creator>
      <dc:date>2016-06-14T03:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277100#M55591</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename xx temp;
libname xx xmlv2 '/folders/myfolders/LabReviewMicroSampleData.xml'  automap=replace xmlmap=xx;
proc copy in=xx out=work;
run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Jun 2016 03:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277100#M55591</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-06-14T03:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277102#M55592</link>
      <description>&lt;P&gt;So you have an XML file that your adding to? Please explain in detail what your trying to do. The terminology isn't clear to me, but XML isn't my area. However, I have used SAS to both create and read XML file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 03:49:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277102#M55592</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-14T03:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277105#M55593</link>
      <description>&lt;P&gt;Okay,here's the scenario. The XML file is from the Cisco Prime API. What&amp;nbsp;I am&amp;nbsp;doing in order to get the XML file is by right clicking and then "save page as...".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, what I am askin' / want to know is if there's a way in SAS in order to automatically generate the XML file.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 03:58:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277105#M55593</guid>
      <dc:creator>jei</dc:creator>
      <dc:date>2016-06-14T03:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277111#M55596</link>
      <description>&lt;P&gt;Ok. So you want to automatically reference an XML file generated by an API. There should be a URL or http method to access the data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the links below, the second is probably closer to what you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2012/12/18/using-sas-to-access-data-stored-on-dropbox/" target="_blank"&gt;http://blogs.sas.com/content/sasdummy/2012/12/18/using-sas-to-access-data-stored-on-dropbox/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/engxml/64990/HTML/default/viewer.htm#n1d4p29qcfovrxn1k4nalh0bz4n6.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/engxml/64990/HTML/default/viewer.htm#n1d4p29qcfovrxn1k4nalh0bz4n6.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 04:37:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277111#M55596</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-14T04:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277135#M55598</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;As what I understood of a copy procedure is that it only copies the files. May I ask if it can also generate the XML file?&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2016 07:22:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277135#M55598</guid>
      <dc:creator>jei</dc:creator>
      <dc:date>2016-06-14T07:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277149#M55601</link>
      <description>&lt;P&gt;No. That is not going to genereate XML as you describe . I think you have to download XML file and import it into SAS .&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 08:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277149#M55601</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-06-14T08:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277162#M55607</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed the query&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename nhl url 'http://www.a.com/Nhl.xml';
filename map 'C:\My Documents\XML\Nhl.map';

libname nhl xml xmlmap=map;

proc copy indd=nhl outdd=work;
   select nhl;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But the resulted data set has no rows as shown in the image below. Do you have any idea about it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="XML file resulted.JPG" alt="XML file resulted.JPG" src="https://communities.sas.com/t5/image/serverpage/image-id/3604i2D64C29906097391/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 08:44:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277162#M55607</guid>
      <dc:creator>jei</dc:creator>
      <dc:date>2016-06-14T08:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277164#M55608</link>
      <description>&lt;P&gt;If that is a HTML file , you don't need to transform it into XML , read HTML directly . Like :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename x url 'http://www.sas.com';
data want;
 infile x recfm=n dlm='&amp;lt;&amp;gt;' ;
 input @'&amp;gt;' x : $2000. @@;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Jun 2016 08:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277164#M55608</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-06-14T08:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277428#M55701</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I used this script and I successfully generate an xml file.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME outfile "C:\Users\jgmanalo\Desktop\Sample1\From URL\OutXML.xml";
LIBNAME source XML 'C:\Users\jgmanalo\Desktop\Sample1\From URL\outxml.xml';
PROC HTTP
 OUT = outfile
 URL = 'https://rbc-svr-pi/webacs/api/v1/data/ClientDetails?.full=true'
 METHOD = 'GET';
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The&amp;nbsp;XML file that I want is this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="1.JPG" alt="1.JPG" src="https://communities.sas.com/t5/image/serverpage/image-id/3624i9C87206AD1A46325/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But what I'm only getting is this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="1.JPG" alt="1.JPG" src="https://communities.sas.com/t5/image/serverpage/image-id/3625i917003E0A9721C91/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something wrong with the script?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 02:36:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277428#M55701</guid>
      <dc:creator>jei</dc:creator>
      <dc:date>2016-06-15T02:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277458#M55716</link>
      <description>&lt;P&gt;Since you can download XML file, Try this code :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME outfile "C:\Users\jgmanalo\Desktop\Sample1\From URL\OutXML.xml";
LIBNAME source XML 'C:\Users\jgmanalo\Desktop\Sample1\From URL\outxml.xml';
PROC HTTP
 OUT = outfile
 URL = 'https://rbc-svr-pi/webacs/api/v1/data/ClientDetails?.full=true'
 METHOD = 'GET';
RUN;


filename xx temp;
libname xx xmlv2 'C:\Users\jgmanalo\Desktop\Sample1\From URL\OutXML.xml'  automap=replace xmlmap=xx;
proc copy in=xx out=work;
run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jun 2016 05:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277458#M55716</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-06-15T05:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277465#M55722</link>
      <description>&lt;P&gt;Do you need to log in to the site to generate the XML file?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 05:41:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277465#M55722</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-15T05:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277471#M55724</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried the code that you gave but an error occured&lt;/P&gt;&lt;P&gt;&lt;IMG title="1.JPG" alt="1.JPG" src="https://communities.sas.com/t5/image/serverpage/image-id/3627i837B1B5F571E0E0A/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 05:55:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277471#M55724</guid>
      <dc:creator>jei</dc:creator>
      <dc:date>2016-06-15T05:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277478#M55728</link>
      <description>&lt;P&gt;That is encoding problem. Maybe try this :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FILENAME outfile "C:\Users\jgmanalo\Desktop\Sample1\From URL\OutXML.xml"&lt;STRONG&gt; encoding='utf-8';&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;FILENAME outfile "C:\Users\jgmanalo\Desktop\Sample1\From URL\OutXML.xml" &lt;STRONG&gt;encoding='utf-16le';&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 06:06:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277478#M55728</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-06-15T06:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277479#M55729</link>
      <description>&lt;P&gt;Did you copy and paste? Sometimes the browsers add things. Try typing it out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 06:06:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277479#M55729</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-15T06:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277503#M55735</link>
      <description>I typed it and I am also log in to the site</description>
      <pubDate>Wed, 15 Jun 2016 08:24:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277503#M55735</guid>
      <dc:creator>jei</dc:creator>
      <dc:date>2016-06-15T08:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277504#M55736</link>
      <description>I try to add the UTF but still the error still the same</description>
      <pubDate>Wed, 15 Jun 2016 08:25:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277504#M55736</guid>
      <dc:creator>jei</dc:creator>
      <dc:date>2016-06-15T08:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull an XML file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277508#M55738</link>
      <description>Could attach a sample file , so we can test it ?</description>
      <pubDate>Wed, 15 Jun 2016 08:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pull-generate-an-XML-file/m-p/277508#M55738</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-06-15T08:50:20Z</dc:date>
    </item>
  </channel>
</rss>

