<?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 LIBNAME XML Export escaping characters in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/LIBNAME-XML-Export-escaping-characters/m-p/30034#M4540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is the right group in the forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to export a SAS dataset to XML using LIBNAME. I can get the XML OK except when there are special/reserved characters (&amp;amp;,&amp;lt;,&amp;gt; etc). The text in that tag end up being escaped/convered to something like &amp;amp;#x62;&amp;amp;#x6F;&amp;amp;#x6F;&amp;amp;#x26; ... I would have expected a string such as 'Me &amp;amp; you' to end up as Me &amp;amp;amp; you. I am using SAS 9.2 on z/OS. I have tried using XMLPROCESS=RELAX (although I do want to escape the characters) but that made no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why and more importantly how to get around this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jul 2011 01:40:24 GMT</pubDate>
    <dc:creator>spanky4_3</dc:creator>
    <dc:date>2011-07-13T01:40:24Z</dc:date>
    <item>
      <title>LIBNAME XML Export escaping characters</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/LIBNAME-XML-Export-escaping-characters/m-p/30034#M4540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is the right group in the forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to export a SAS dataset to XML using LIBNAME. I can get the XML OK except when there are special/reserved characters (&amp;amp;,&amp;lt;,&amp;gt; etc). The text in that tag end up being escaped/convered to something like &amp;amp;#x62;&amp;amp;#x6F;&amp;amp;#x6F;&amp;amp;#x26; ... I would have expected a string such as 'Me &amp;amp; you' to end up as Me &amp;amp;amp; you. I am using SAS 9.2 on z/OS. I have tried using XMLPROCESS=RELAX (although I do want to escape the characters) but that made no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why and more importantly how to get around this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 01:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/LIBNAME-XML-Export-escaping-characters/m-p/30034#M4540</guid>
      <dc:creator>spanky4_3</dc:creator>
      <dc:date>2011-07-13T01:40:24Z</dc:date>
    </item>
    <item>
      <title>LIBNAME XML Export escaping characters</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/LIBNAME-XML-Export-escaping-characters/m-p/30035#M4541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is probably a question best answered by Tech Support. I only find XMLPROCESS= in a description of IMPORTING from XML into SAS (not for EXPORT, in SAS 9.2). The documentation for 9.2, in addition,&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/engxml/62845/HTML/default/viewer.htm#a002484784.htm"&gt;http://support.sas.com/documentation/cdl/en/engxml/62845/HTML/default/viewer.htm#a002484784.htm&lt;/A&gt; shows the valid values as either CONFORM or PERMIT. (RELAX was a valid value in SAS 9.1.3). So at this point, Tech Support could look at ALL your code, clarify whether you are importing or exporting and help you figure out the best solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 00:50:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/LIBNAME-XML-Export-escaping-characters/m-p/30035#M4541</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-07-14T00:50:55Z</dc:date>
    </item>
  </channel>
</rss>

