<?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 Map: Showing element tags when value is missing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/XML-Map-Showing-element-tags-when-value-is-missing/m-p/510338#M137458</link>
    <description>&lt;P&gt;I am using XMLV2 engine to export SAS datasets to xml. The issue is when a numeric value is missing. By default SAS shows&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;column_name&amp;gt;.&amp;lt;/&lt;SPAN&gt;column_name&amp;gt;. If I set options missing="" then I get only &amp;lt;column_name /&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there any way to show&amp;nbsp;&amp;lt;column_name&amp;gt;&amp;lt;/column_name&amp;gt; without the dot for numeric missing values when using xmlmap.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sample Code is given below:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;libname lib1 xmlv2 "/data/sample.xml" xmlmap="/data/sample_data.map";



data lib1.abcd;

set temp;/*Dataset containing 10 numeric and 10 character columns*/

run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Nov 2018 07:44:34 GMT</pubDate>
    <dc:creator>ADN</dc:creator>
    <dc:date>2018-11-05T07:44:34Z</dc:date>
    <item>
      <title>XML Map: Showing element tags when value is missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-Map-Showing-element-tags-when-value-is-missing/m-p/510338#M137458</link>
      <description>&lt;P&gt;I am using XMLV2 engine to export SAS datasets to xml. The issue is when a numeric value is missing. By default SAS shows&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;column_name&amp;gt;.&amp;lt;/&lt;SPAN&gt;column_name&amp;gt;. If I set options missing="" then I get only &amp;lt;column_name /&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there any way to show&amp;nbsp;&amp;lt;column_name&amp;gt;&amp;lt;/column_name&amp;gt; without the dot for numeric missing values when using xmlmap.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sample Code is given below:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;libname lib1 xmlv2 "/data/sample.xml" xmlmap="/data/sample_data.map";



data lib1.abcd;

set temp;/*Dataset containing 10 numeric and 10 character columns*/

run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 07:44:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-Map-Showing-element-tags-when-value-is-missing/m-p/510338#M137458</guid>
      <dc:creator>ADN</dc:creator>
      <dc:date>2018-11-05T07:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: XML Map: Showing element tags when value is missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-Map-Showing-element-tags-when-value-is-missing/m-p/510917#M137498</link>
      <description>&lt;P&gt;I don't think you can do this directly.&lt;/P&gt;
&lt;P&gt;You probably have to process the XML file after creation. See &lt;A href="https://communities.sas.com/t5/SAS-Programming/XML-Map-Hiding-elementgs-when-value-is-missing/m-p/505253/highlight/true#M135285" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 22:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-Map-Showing-element-tags-when-value-is-missing/m-p/510917#M137498</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-11-06T22:18:14Z</dc:date>
    </item>
  </channel>
</rss>

