<?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 Importing XML ERROR: The creation of the XML Mapper file failed. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-XML-ERROR-The-creation-of-the-XML-Mapper-file-failed/m-p/642740#M191787</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the following code to import XML. I get&amp;nbsp;ERROR: The creation of the XML Mapper file failed. I am on sas 9.4. Any ideas on how to work around? I googled this error and saw encoding mentioned; putting an encoding option on my filename statement does not seem to work. Any tips appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename myxml '/mypath/import.xml'; 
filename mymap '/mypath/generate.map'; 

libname myxml xmlv2 automap=replace xmlmap=mymap; &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 24 Apr 2020 18:30:19 GMT</pubDate>
    <dc:creator>shl007</dc:creator>
    <dc:date>2020-04-24T18:30:19Z</dc:date>
    <item>
      <title>Importing XML ERROR: The creation of the XML Mapper file failed.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-XML-ERROR-The-creation-of-the-XML-Mapper-file-failed/m-p/642740#M191787</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the following code to import XML. I get&amp;nbsp;ERROR: The creation of the XML Mapper file failed. I am on sas 9.4. Any ideas on how to work around? I googled this error and saw encoding mentioned; putting an encoding option on my filename statement does not seem to work. Any tips appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename myxml '/mypath/import.xml'; 
filename mymap '/mypath/generate.map'; 

libname myxml xmlv2 automap=replace xmlmap=mymap; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Apr 2020 18:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-XML-ERROR-The-creation-of-the-XML-Mapper-file-failed/m-p/642740#M191787</guid>
      <dc:creator>shl007</dc:creator>
      <dc:date>2020-04-24T18:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Importing XML ERROR: The creation of the XML Mapper file failed.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-XML-ERROR-The-creation-of-the-XML-Mapper-file-failed/m-p/642775#M191800</link>
      <description>&lt;P&gt;Correction: I am using SAS Enterprise Guide, 7.15&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 20:09:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-XML-ERROR-The-creation-of-the-XML-Mapper-file-failed/m-p/642775#M191800</guid>
      <dc:creator>shl007</dc:creator>
      <dc:date>2020-04-24T20:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Importing XML ERROR: The creation of the XML Mapper file failed.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-XML-ERROR-The-creation-of-the-XML-Mapper-file-failed/m-p/642822#M191816</link>
      <description>&lt;P&gt;Try this code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename MYXML '/tmp/import.xml';
filename MYMAP '/tmp/generate.map';

ods xml file=MYXML;
proc print data=SASHELP.CLASS; run;
ods xml close;

libname MYXML xmlv2 automap=replace xmlmap=MYMAP;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to see if you get this log:&lt;/P&gt;
&lt;PRE&gt; 4          filename MYXML '/tmp/import.xml';
 5          filename MYMAP '/tmp/generate.map';
 6          
 7          ods xml file=MYXML;
 NOTE: Writing XML Body file: MYXML
 8          proc print data=SASHELP.CLASS; run;
 
 NOTE: There were 19 observations read from the data set SASHELP.CLASS.
 NOTE: The PROCEDURE PRINT printed page 1.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.04 seconds
       cpu time            0.04 seconds
       
 
 9          ods xml close;
 10         
 11         libname MYXML xmlv2 automap=replace xmlmap=MYMAP;
 NOTE: Processing XMLMap version 2.1.
 NOTE: Libref MYXML was successfully assigned as follows: 
       Engine:        XMLV2 
       Physical Name: /tmp/import.xml&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2020 02:10:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-XML-ERROR-The-creation-of-the-XML-Mapper-file-failed/m-p/642822#M191816</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-04-25T02:10:04Z</dc:date>
    </item>
  </channel>
</rss>

