<?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: Read XML URL from SAS EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/437036#M28215</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The change for use the encoding UTF-8 in the file&amp;nbsp;&lt;STRONG&gt;sasv9.cfg&amp;nbsp;&lt;/STRONG&gt;affects to all sessions, there is any way to force only one project to UTF-8 encoding or for only one dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 10:51:30 GMT</pubDate>
    <dc:creator>JuanDaniel</dc:creator>
    <dc:date>2018-02-14T10:51:30Z</dc:date>
    <item>
      <title>Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/436793#M28196</link>
      <description>&lt;P&gt;Hi masters!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to read an XML from an external URL, the code that i use is like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename Archive url 'https://myURL?$format=xml'&lt;BR /&gt;User="USER" pass="PASS";&lt;BR /&gt;filename SXLEMAP 'C:\mapa.map';&lt;BR /&gt;libname Archive xml92 xmlmap=SXLEMAP access=readonly;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well this code works properly and I have tables in the library but when I try to filter the table with a query i get the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Some code points did not transcode.&lt;BR /&gt;occurred at or near line 1, column 954035&lt;BR /&gt;ERROR: XML parsing error. Please verify that the XML content is well-formed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I create the map file with SAS XML mapper and the automatic option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 17:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/436793#M28196</guid>
      <dc:creator>JuanDaniel</dc:creator>
      <dc:date>2018-02-13T17:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/436794#M28197</link>
      <description>&lt;P&gt;Instead of running queries directly on the XML libname, I'd use DATA step to create a copy as a SAS data set.&amp;nbsp; Then run your filter on that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data myxml;
  set Archive.myxml;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Feb 2018 17:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/436794#M28197</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-02-13T17:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/436817#M28198</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i tried with the data step and I get the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 19:22:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/436817#M28198</guid>
      <dc:creator>JuanDaniel</dc:creator>
      <dc:date>2018-02-13T19:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/436827#M28199</link>
      <description>&lt;P&gt;Might be an encoding mismatch.&amp;nbsp; If you can use UTF-8 encoding in your SAS session, you might have better luck.&amp;nbsp; Or take a look at the XML file (the column where the error was flagged) and see if it's an aberration -- something like a curly quote or some other character that really shouldn't be there.&amp;nbsp; I'd use Notepad++ for something like that.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 19:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/436827#M28199</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-02-13T19:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/436887#M28206</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;How can i use the UTF-8 in my SAS session?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think i dont have&amp;nbsp;&lt;SPAN&gt;954035 colunms :S&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 21:27:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/436887#M28206</guid>
      <dc:creator>JuanDaniel</dc:creator>
      <dc:date>2018-02-13T21:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/436901#M28207</link>
      <description>&lt;P&gt;I suspect that your XML file is being read as a huge 1-line mass, and the column number is really a character position.&amp;nbsp; That's why I suggested Notepad++ -- it can handle large files and you can navigate to the 954,035th character position, see what's there.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 22:20:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/436901#M28207</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-02-13T22:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/436912#M28209</link>
      <description>&lt;P&gt;Thanks!!&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I change the encoding for the SAS session and it works!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 22:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/436912#M28209</guid>
      <dc:creator>JuanDaniel</dc:creator>
      <dc:date>2018-02-13T22:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Read XML URL from SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/437036#M28215</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The change for use the encoding UTF-8 in the file&amp;nbsp;&lt;STRONG&gt;sasv9.cfg&amp;nbsp;&lt;/STRONG&gt;affects to all sessions, there is any way to force only one project to UTF-8 encoding or for only one dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 10:51:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-XML-URL-from-SAS-EG/m-p/437036#M28215</guid>
      <dc:creator>JuanDaniel</dc:creator>
      <dc:date>2018-02-14T10:51:30Z</dc:date>
    </item>
  </channel>
</rss>

