<?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: Import XML ERROR: Expected an XML document prolog or element in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-XML-ERROR-Expected-an-XML-document-prolog-or-element/m-p/643364#M191997</link>
    <description>&lt;P&gt;Just to clarify, the lines I just provided DO run successfully. It is my data step below that bombs with the aforesaid "prolog or element" error:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data test;&lt;BR /&gt;set myxml.billing;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see the XML imported in my libname; it is when I try to use one of the XML tables into a data step that the error occurs.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2020 17:04:42 GMT</pubDate>
    <dc:creator>shl007</dc:creator>
    <dc:date>2020-04-27T17:04:42Z</dc:date>
    <item>
      <title>Import XML ERROR: Expected an XML document prolog or element</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-XML-ERROR-Expected-an-XML-document-prolog-or-element/m-p/643160#M191901</link>
      <description>&lt;P&gt;Hi - I've imported an XML successfully, but now I'm getting the following error when I try to use that imported XML into a data step. Any ideas? It says line 1 column 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Expected an XML document prolog or element.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 00:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-XML-ERROR-Expected-an-XML-document-prolog-or-element/m-p/643160#M191901</guid>
      <dc:creator>shl007</dc:creator>
      <dc:date>2020-04-27T00:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Import XML ERROR: Expected an XML document prolog or element</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-XML-ERROR-Expected-an-XML-document-prolog-or-element/m-p/643168#M191906</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I don't understand, exactly how you imported the XML successfully. If you've imported the XML into a SAS data set, then you would not be getting XML errors. Or, you could be encountering an issue such as the one described here: &lt;A href="https://support.sas.com/kb/46/233.html" target="_blank"&gt;https://support.sas.com/kb/46/233.html&lt;/A&gt; . I'd recommend opening a track with Tech Support. Without seeing the ALL the code you're running and the data/file you're using, it's nearly impossible to comment.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 01:41:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-XML-ERROR-Expected-an-XML-document-prolog-or-element/m-p/643168#M191906</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-04-27T01:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Import XML ERROR: Expected an XML document prolog or element</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-XML-ERROR-Expected-an-XML-document-prolog-or-element/m-p/643363#M191996</link>
      <description>&lt;P&gt;The code I am using is below. I did submit a ticket to SAS support, and they said, "&lt;SPAN&gt;The XML Engine does not see an prolog statement &amp;nbsp;or the opening XML tag on line 1." So I sent SAS support the first few lines of my XML file. I'm not sure what to correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using “xml2” engine:&lt;/P&gt;&lt;P&gt;filename myxml '/mypath/myfile.xml' ENCODING = 'unicode';&lt;/P&gt;&lt;P&gt;filename mymap '/mypath/myfile_generate.map';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname myxml xmlv2 automap=replace xmlmap=mymap compat=yes;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 17:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-XML-ERROR-Expected-an-XML-document-prolog-or-element/m-p/643363#M191996</guid>
      <dc:creator>shl007</dc:creator>
      <dc:date>2020-04-27T17:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Import XML ERROR: Expected an XML document prolog or element</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-XML-ERROR-Expected-an-XML-document-prolog-or-element/m-p/643364#M191997</link>
      <description>&lt;P&gt;Just to clarify, the lines I just provided DO run successfully. It is my data step below that bombs with the aforesaid "prolog or element" error:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data test;&lt;BR /&gt;set myxml.billing;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see the XML imported in my libname; it is when I try to use one of the XML tables into a data step that the error occurs.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 17:04:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-XML-ERROR-Expected-an-XML-document-prolog-or-element/m-p/643364#M191997</guid>
      <dc:creator>shl007</dc:creator>
      <dc:date>2020-04-27T17:04:42Z</dc:date>
    </item>
  </channel>
</rss>

