<?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: How to print special characters like %$&amp;amp;&amp;lt;&amp;gt; in xml file and display in the browser. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-special-characters-like-amp-lt-gt-in-xml-file-and/m-p/745716#M233810</link>
    <description>&lt;P&gt;Please help me to solve this issue.&lt;/P&gt;&lt;P&gt;without using CDATA how we can display special characters like %$&amp;amp; etc. in any browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jun 2021 09:50:41 GMT</pubDate>
    <dc:creator>Shantaram</dc:creator>
    <dc:date>2021-06-04T09:50:41Z</dc:date>
    <item>
      <title>How to print special characters like %$&amp;&lt;&gt; in xml file and display in the browser.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-special-characters-like-amp-lt-gt-in-xml-file-and/m-p/744904#M233427</link>
      <description>&lt;P&gt;i am trying below code but special characters are not display in browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data transformed_data;&lt;BR /&gt;input DC_01 $6. DC_02 $13. DC_03 $9.;&lt;BR /&gt;cards;&lt;BR /&gt;116312 tosst p%o&amp;amp;ic&lt;BR /&gt;118323 tosst Police Mobile&lt;BR /&gt;113244 tosst Police Mobile&lt;BR /&gt;115333 tosst Police Mobile&lt;BR /&gt;118333 tosst Police Mobile&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;set transformed_data;&lt;BR /&gt;file "$FSAGQS/QIS_DIBIS/transfers2/TEST_Shan1.xml";&lt;BR /&gt;if _n_=1 then do;&lt;BR /&gt;put '&amp;lt;?xml version="1.0" encoding="iso-8859-1"?&amp;gt;';&lt;BR /&gt;put '&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;A href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;" xmlns:type="&lt;A href="http://www.quinity.com/qis/soap/qisxmlpolicyrequestservice/type" target="_blank"&gt;http://www.quinity.com/qis/soap/qisxmlpolicyrequestservice/type&lt;/A&gt;"&amp;gt;';&lt;BR /&gt;Put '&amp;lt;Data&amp;gt;';&lt;BR /&gt;put '&amp;lt;answer&amp;gt;';&lt;BR /&gt;put '&amp;lt;value&amp;gt;' DC_01 '&amp;lt;/value&amp;gt;';&lt;BR /&gt;put '&amp;lt;/answer&amp;gt;';&lt;BR /&gt;put '&amp;lt;answer&amp;gt;';&lt;BR /&gt;put '&amp;lt;value&amp;gt;' DC_02 '&amp;lt;/value&amp;gt;';&lt;BR /&gt;put '&amp;lt;/answer&amp;gt;';&lt;BR /&gt;Put '&amp;lt;/Data&amp;gt;';&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 11:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-special-characters-like-amp-lt-gt-in-xml-file-and/m-p/744904#M233427</guid>
      <dc:creator>Shantaram</dc:creator>
      <dc:date>2021-06-01T11:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to print special characters like %$&amp;&lt;&gt; in xml file and display in the browser.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-special-characters-like-amp-lt-gt-in-xml-file-and/m-p/744905#M233428</link>
      <description>&lt;P&gt;Hi, maybe try encode the characters:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data transformed_data;
input DC_01 $6. DC_02 $13. DC_03 $9.;
cards;
116312 tosst p%o&amp;amp;ic
118323 tosst Police Mobile
113244 tosst Police Mobile
115333 tosst Police Mobile
118333 tosst Police Mobile
;
run;

data _null_;
set transformed_data;
file "C:\Users\bart\Desktop/TEST_Shan1.xml";
if _n_=1 then do;
put '&amp;lt;?xml version="1.0" encoding="iso-8859-1"?&amp;gt;';
put '&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:type="http://www.quinity.com/qis/soap/qisxmlpolicyrequestservice/type"&amp;gt;';
end;
Put '&amp;lt;Data&amp;gt;';
put '&amp;lt;answer&amp;gt;';
put '&amp;lt;value&amp;gt;' DC_01 '&amp;lt;/value&amp;gt;';
put '&amp;lt;/answer&amp;gt;';
put '&amp;lt;answer&amp;gt;';

DC_02x = HTMLENCODE(DC_02);

put '&amp;lt;value&amp;gt;' DC_02x '&amp;lt;/value&amp;gt;';
put '&amp;lt;/answer&amp;gt;';
Put '&amp;lt;/Data&amp;gt;';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 11:37:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-special-characters-like-amp-lt-gt-in-xml-file-and/m-p/744905#M233428</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2021-06-01T11:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to print special characters like %$&amp;&lt;&gt; in xml file and display in the browser.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-special-characters-like-amp-lt-gt-in-xml-file-and/m-p/745021#M233488</link>
      <description>&lt;P&gt;One possibility is to use the CDATA section marker:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
set transformed_data;
file "$FSAGQS/QIS_DIBIS/transfers2/TEST_Shan1.xml";
if _n_=1 then do;
put '&amp;lt;?xml version="1.0" encoding="iso-8859-1"?&amp;gt;';
put '&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:type="http://www.quinity.com/qis/soap/qisxmlpolicyrequestservice/type"&amp;gt;';
Put '&amp;lt;Data&amp;gt;';
put '&amp;lt;answer&amp;gt;';
put '&amp;lt;value&amp;gt;&amp;lt;![CDATA[' DC_01 ']]&amp;gt;&amp;lt;/value&amp;gt;';
put '&amp;lt;/answer&amp;gt;';
put '&amp;lt;answer&amp;gt;';
put '&amp;lt;value&amp;gt;&amp;lt;![CDATA[' DC_02' ]]&amp;gt;&amp;lt;/value&amp;gt;';
put '&amp;lt;/answer&amp;gt;';
Put '&amp;lt;/Data&amp;gt;';
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This way, unless your columns contain the string "]]&amp;gt;", they will be shown faithfully.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 19:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-special-characters-like-amp-lt-gt-in-xml-file-and/m-p/745021#M233488</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2021-06-01T19:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to print special characters like %$&amp;&lt;&gt; in xml file and display in the browser.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-special-characters-like-amp-lt-gt-in-xml-file-and/m-p/745076#M233520</link>
      <description>Thanks s_lassen,&lt;BR /&gt;&lt;BR /&gt;Its working but it will add extra line in the output&lt;BR /&gt;like &amp;lt;![CDATA&lt;BR /&gt;]]&lt;BR /&gt;I don't want to add extra line in to the output.</description>
      <pubDate>Wed, 02 Jun 2021 04:36:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-special-characters-like-amp-lt-gt-in-xml-file-and/m-p/745076#M233520</guid>
      <dc:creator>Shantaram</dc:creator>
      <dc:date>2021-06-02T04:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to print special characters like %$&amp;&lt;&gt; in xml file and display in the browser.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-special-characters-like-amp-lt-gt-in-xml-file-and/m-p/745077#M233521</link>
      <description>Thanks yabwon,&lt;BR /&gt;&lt;BR /&gt;Its not working.</description>
      <pubDate>Wed, 02 Jun 2021 04:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-special-characters-like-amp-lt-gt-in-xml-file-and/m-p/745077#M233521</guid>
      <dc:creator>Shantaram</dc:creator>
      <dc:date>2021-06-02T04:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to print special characters like %$&amp;&lt;&gt; in xml file and display in the browser.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-special-characters-like-amp-lt-gt-in-xml-file-and/m-p/745716#M233810</link>
      <description>&lt;P&gt;Please help me to solve this issue.&lt;/P&gt;&lt;P&gt;without using CDATA how we can display special characters like %$&amp;amp; etc. in any browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 09:50:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-special-characters-like-amp-lt-gt-in-xml-file-and/m-p/745716#M233810</guid>
      <dc:creator>Shantaram</dc:creator>
      <dc:date>2021-06-04T09:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to print special characters like %$&amp;&lt;&gt; in xml file and display in the browser.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-special-characters-like-amp-lt-gt-in-xml-file-and/m-p/746149#M234035</link>
      <description>Thank you so much Yabwon,&lt;BR /&gt;Its working.</description>
      <pubDate>Mon, 07 Jun 2021 04:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-special-characters-like-amp-lt-gt-in-xml-file-and/m-p/746149#M234035</guid>
      <dc:creator>Shantaram</dc:creator>
      <dc:date>2021-06-07T04:59:38Z</dc:date>
    </item>
  </channel>
</rss>

