<?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: XML Error: Creation of XML Mapper File Failed in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/XML-Error-Creation-of-XML-Mapper-File-Failed/m-p/644052#M192324</link>
    <description>&lt;P&gt;Works for me. Are you sure you have write access to that location?&lt;/P&gt;
&lt;P&gt;Test Program:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename myxml temp; 
options parmcards=myxml;
parmcards;
&amp;lt;?xml version="1.0" ?&amp;gt;
&amp;lt;root&amp;gt;
&amp;lt;Docs&amp;gt;
&amp;lt;TestDoc&amp;gt;
&amp;lt;DocHeader&amp;gt;
&amp;lt;DocFormat&amp;gt;PDF&amp;lt;/DocFormat&amp;gt;
&amp;lt;PrintDt&amp;gt;2020-04-07&amp;lt;/PrintDt&amp;gt;
&amp;lt;DocID&amp;gt;TEST&amp;lt;/DocID&amp;gt;
&amp;lt;SendTo&amp;gt;Yes&amp;lt;/SendTo&amp;gt;
&amp;lt;/DocHeader&amp;gt;
&amp;lt;/TestDoc&amp;gt;
&amp;lt;/Docs&amp;gt;
&amp;lt;/root&amp;gt;
;

filename mymap temp ;
libname myxml xmlv2 automap=replace xmlmap=mymap compat=yes;

proc copy inlib=myxml out=work;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;PRE&gt;34    filename mymap temp ;
35    libname myxml xmlv2 automap=replace xmlmap=mymap compat=yes;
NOTE: Processing XMLMap version 2.1.
NOTE: Libref MYXML was successfully assigned as follows:
      Engine:        XMLV2
      Physical Name: ...\#LN00057
36    proc copy inlib=myxml out=work;
37    run;

NOTE: Copying MYXML.DocHeader to WORK.DOCHEADER (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 1 observations read from the data set MYXML.DocHeader.
NOTE: The data set WORK.DOCHEADER has 1 observations and 6 variables.
NOTE: Copying MYXML.Docs to WORK.DOCS (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 1 observations read from the data set MYXML.Docs.
NOTE: The data set WORK.DOCS has 1 observations and 2 variables.
NOTE: Copying MYXML.TestDoc to WORK.TESTDOC (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 1 observations read from the data set MYXML.TestDoc.
NOTE: The data set WORK.TESTDOC has 1 observations and 2 variables.
NOTE: Copying MYXML.root to WORK.ROOT (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 1 observations read from the data set MYXML.root.
NOTE: The data set WORK.ROOT has 1 observations and 1 variables.
NOTE: PROCEDURE COPY used (Total process time):
      real time           0.11 seconds
      cpu time            0.06 seconds
&lt;/PRE&gt;</description>
    <pubDate>Wed, 29 Apr 2020 19:16:57 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-04-29T19:16:57Z</dc:date>
    <item>
      <title>XML Error: Creation of XML Mapper File Failed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-Error-Creation-of-XML-Mapper-File-Failed/m-p/644019#M192306</link>
      <description>&lt;P&gt;Hi. I am working with the samle/dummy XML further down. I've saved that XML as text.xml. I am trying to import this file using the following lines of code. The error I get is,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: The creation of the XML Mapper file failed.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone see what is the missing link?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename myxml '/mypath/test.xml'; 
filename mymap '/mypath/gc_print_generate.map'; 
libname myxml xmlv2 automap=replace xmlmap=mymap compat=yes; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;XML file:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;BR /&gt;&amp;lt;root&amp;gt;&lt;BR /&gt;&amp;lt;Docs&amp;gt;&lt;BR /&gt;&amp;lt;TestDoc&amp;gt;&lt;BR /&gt;&amp;lt;DocHeader&amp;gt;&lt;BR /&gt;&amp;lt;DocFormat&amp;gt;PDF&amp;lt;/DocFormat&amp;gt;&lt;BR /&gt;&amp;lt;PrintDt&amp;gt;2020-04-07&amp;lt;/PrintDt&amp;gt;&lt;BR /&gt;&amp;lt;DocID&amp;gt;TEST&amp;lt;/DocID&amp;gt;&lt;BR /&gt;&amp;lt;SendTo&amp;gt;Yes&amp;lt;/SendTo&amp;gt;&lt;BR /&gt;&amp;lt;/DocHeader&amp;gt;&lt;BR /&gt;&amp;lt;/TestDoc&amp;gt;&lt;BR /&gt;&amp;lt;/Docs&amp;gt;&lt;BR /&gt;&amp;lt;/root&amp;gt;&lt;BR /&gt;&amp;lt;/xml&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 16:31:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-Error-Creation-of-XML-Mapper-File-Failed/m-p/644019#M192306</guid>
      <dc:creator>shl007</dc:creator>
      <dc:date>2020-04-29T16:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: XML Error: Creation of XML Mapper File Failed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-Error-Creation-of-XML-Mapper-File-Failed/m-p/644052#M192324</link>
      <description>&lt;P&gt;Works for me. Are you sure you have write access to that location?&lt;/P&gt;
&lt;P&gt;Test Program:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename myxml temp; 
options parmcards=myxml;
parmcards;
&amp;lt;?xml version="1.0" ?&amp;gt;
&amp;lt;root&amp;gt;
&amp;lt;Docs&amp;gt;
&amp;lt;TestDoc&amp;gt;
&amp;lt;DocHeader&amp;gt;
&amp;lt;DocFormat&amp;gt;PDF&amp;lt;/DocFormat&amp;gt;
&amp;lt;PrintDt&amp;gt;2020-04-07&amp;lt;/PrintDt&amp;gt;
&amp;lt;DocID&amp;gt;TEST&amp;lt;/DocID&amp;gt;
&amp;lt;SendTo&amp;gt;Yes&amp;lt;/SendTo&amp;gt;
&amp;lt;/DocHeader&amp;gt;
&amp;lt;/TestDoc&amp;gt;
&amp;lt;/Docs&amp;gt;
&amp;lt;/root&amp;gt;
;

filename mymap temp ;
libname myxml xmlv2 automap=replace xmlmap=mymap compat=yes;

proc copy inlib=myxml out=work;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;PRE&gt;34    filename mymap temp ;
35    libname myxml xmlv2 automap=replace xmlmap=mymap compat=yes;
NOTE: Processing XMLMap version 2.1.
NOTE: Libref MYXML was successfully assigned as follows:
      Engine:        XMLV2
      Physical Name: ...\#LN00057
36    proc copy inlib=myxml out=work;
37    run;

NOTE: Copying MYXML.DocHeader to WORK.DOCHEADER (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 1 observations read from the data set MYXML.DocHeader.
NOTE: The data set WORK.DOCHEADER has 1 observations and 6 variables.
NOTE: Copying MYXML.Docs to WORK.DOCS (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 1 observations read from the data set MYXML.Docs.
NOTE: The data set WORK.DOCS has 1 observations and 2 variables.
NOTE: Copying MYXML.TestDoc to WORK.TESTDOC (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 1 observations read from the data set MYXML.TestDoc.
NOTE: The data set WORK.TESTDOC has 1 observations and 2 variables.
NOTE: Copying MYXML.root to WORK.ROOT (memtype=DATA).
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: There were 1 observations read from the data set MYXML.root.
NOTE: The data set WORK.ROOT has 1 observations and 1 variables.
NOTE: PROCEDURE COPY used (Total process time):
      real time           0.11 seconds
      cpu time            0.06 seconds
&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Apr 2020 19:16:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-Error-Creation-of-XML-Mapper-File-Failed/m-p/644052#M192324</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-29T19:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: XML Error: Creation of XML Mapper File Failed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-Error-Creation-of-XML-Mapper-File-Failed/m-p/644301#M192439</link>
      <description>&lt;P&gt;I can write a libname to the same path. So this is weird? Any other thoughts?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 16:24:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-Error-Creation-of-XML-Mapper-File-Failed/m-p/644301#M192439</guid>
      <dc:creator>shl007</dc:creator>
      <dc:date>2020-04-30T16:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: XML Error: Creation of XML Mapper File Failed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-Error-Creation-of-XML-Mapper-File-Failed/m-p/644304#M192441</link>
      <description>&lt;P&gt;A libname statement does not necessarily need to be able to WRITE to the directory being referenced. But you were asking the engine to write a NEW map file.&lt;/P&gt;
&lt;P&gt;Do you have write access to that directory to create the new file?&amp;nbsp; Perhaps the file is locked by you or someone else. Perhaps even by your earlier use of the file in another XML libref.&amp;nbsp; Does it help to clear the libref first?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you can use the TEMP engine for the map file, like I did in my example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 16:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-Error-Creation-of-XML-Mapper-File-Failed/m-p/644304#M192441</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-30T16:49:48Z</dc:date>
    </item>
  </channel>
</rss>

