<?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 XML PARSE ERROR:  Missing whitespace between attributes in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/XML-PARSE-ERROR-Missing-whitespace-between-attributes/m-p/102602#M9761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need help on tagsets.excelxp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get rid of this error, so I can open my Excel output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Using Base SAS v9.3 on WindowsXP platform.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample of my code is in attachment below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Apr 2013 17:33:24 GMT</pubDate>
    <dc:creator>chandler</dc:creator>
    <dc:date>2013-04-09T17:33:24Z</dc:date>
    <item>
      <title>XML PARSE ERROR:  Missing whitespace between attributes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/XML-PARSE-ERROR-Missing-whitespace-between-attributes/m-p/102602#M9761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need help on tagsets.excelxp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get rid of this error, so I can open my Excel output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Using Base SAS v9.3 on WindowsXP platform.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample of my code is in attachment below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 17:33:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/XML-PARSE-ERROR-Missing-whitespace-between-attributes/m-p/102602#M9761</guid>
      <dc:creator>chandler</dc:creator>
      <dc:date>2013-04-09T17:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: XML PARSE ERROR:  Missing whitespace between attributes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/XML-PARSE-ERROR-Missing-whitespace-between-attributes/m-p/102603#M9762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I don't observe an issue with Excel when I produce output with ODS TAGSETS.EXCELXP. However, I no longer have Windows XP to test with. I just have Windows 7 and Excel 2010 using SAS 9.3 and ExcelXP tagset version 1.127 dated 09/26/2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; But, the screenshot attached, was produced by the code below. Since you did not post your complete code, I used SASHELP.PRDSALE and made some fake variables (you had over 20 variables on your report), so I made sure that I had more than 20 variables on my report. You didn't show all of your REPORT code, so I just made most of the variables have a usage of DISPLAY. And then, I removed all the "LISTING" only options, such as LS, PS, HEADLINE, HEADSKIP, which are ignored by ODS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Also, the HTMLSTYLE attribute that you used in your code was intended only for use with ODS HTML or ODS MSOFFICE2K or ODS MSOFFICE2K_X destinations -- HTMLSTYLE is the way that you alter the Microsoft format used for a number with &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;HTML&lt;/STRONG&gt;&lt;/SPAN&gt; destinations. But, since TAGSETS.EXCELXP is not HTML, but instead is &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;XML&lt;/STRONG&gt;&lt;/SPAN&gt; (Spreadsheet Markup Language 2003 XML); with TAGSETS.EXCELXP, you need to use the TAGATTR style attribute (see this paper, &lt;A href="http://support.sas.com/resources/papers/proceedings11/266-2011.pdf" title="http://support.sas.com/resources/papers/proceedings11/266-2011.pdf"&gt;http://support.sas.com/resources/papers/proceedings11/266-2011.pdf&lt;/A&gt; page 3 to see how to specify a "text" format using TAGATTR with TAGSETS.EXCELXP ). You can see that the attribute got applied because all my numeric columns show the little green triangle, which is Excel's not so subtle message that I am storing a number as text. And I popped up the format box on the YEAR column so you could see that Excel is using the TEXT format for the cell. It is not appropriate to use HTMLSTYLE with TAGSETS.EXCELXP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I did not have an issue with the XML that was generated or with opening the file in Excel. Perhaps your version of Excel has issues with the HTMLSTYLE information like "mso-number-format" being passed in -- I'm not sure. That would be another question for Tech Support.&amp;nbsp; If you run my test code and get the same error, then that would be an indication that you need to work with Tech Support on this issue. If you run my test code and do NOT get the same error with Excel, but you still are not getting the results that you want with your code,&amp;nbsp; then that would be an indication that something is different about your PROC REPORT code, and again, it would be good to open a track with Tech Support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; To open a track with Tech Support, fill out the form at this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/ctx/supportform/createForm"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;%let filedt = 2013APR09;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;data prdsale;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; set sashelp.prdsale;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; ** original report column statement had over 20 variables,&amp;nbsp; ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; ** so make a bunch of fake variables for the report.; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; array fakevar var1-var10;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; do i = 1 to 10;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if i le 5 then fakevar(i) = i * actual/100;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else fakevar(i) = i * predict/100;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods listing close; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods tagsets.excelxp file="c:\temp\Remote_UW_&amp;amp;filedt..xml"&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=statistical ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;PROC REPORT DATA=prdsale&amp;nbsp; SPLIT="/"&amp;nbsp; CENTER MISSING&amp;nbsp; nowd&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STYLE(REPORT) =[FONT_face="Arial" FONT_SIZE=8pt background=black]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STYLE(HEADER) =[FONT_SIZE=8pt FOREGROUND=BLACK BACKGROUND=WHITE]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STYLE(COLUMN) =[FONT_SIZE=8pt FOREGROUND=BLACK BACKGROUND=WHITE&amp;nbsp; tagattr='Format:@'] ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; COLUMN&amp;nbsp; country region division prodtype product &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quarter year actual predict&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var1 var2 var3 var4 var5 var6 var7 var8 var9 var10;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define country / display;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define region / display;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define division / display;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define prodtype / display;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define product / display;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define quarter / display;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define year / display;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define actual / display;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define predict / display;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods tagsets.excelxp close&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11080iF2083AAA6ED8414B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="xp_number_as_text.png" title="xp_number_as_text.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 22:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/XML-PARSE-ERROR-Missing-whitespace-between-attributes/m-p/102603#M9762</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-04-09T22:54:12Z</dc:date>
    </item>
  </channel>
</rss>

