<?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: XML: XMLMAP NAMESPACES resulting in 0 observations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/XML-XMLMAP-NAMESPACES-resulting-in-0-observations/m-p/389615#M93420</link>
    <description>&lt;P&gt;What is the connection to sas ?&lt;/P&gt;
&lt;P&gt;What is your sas code?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2017 19:01:23 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2017-08-21T19:01:23Z</dc:date>
    <item>
      <title>XML: XMLMAP NAMESPACES resulting in 0 observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-XMLMAP-NAMESPACES-resulting-in-0-observations/m-p/389613#M93419</link>
      <description>&lt;P&gt;If I omit the NAMESPACES lines, then my table has the expected number of observations.&amp;nbsp; If I include it, then I get zero observations:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;?xml version="1.0" encoding="windows-1252"?&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;SXLEMAP name="define_2a" version="2.1"&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;lt;NAMESPACES count="1"&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;lt;NS id="1" prefix="def"&amp;gt;&lt;A href="http://www.cdisc.org/ns/def/v2.0&amp;lt;/NS" target="_blank"&gt;http://www.cdisc.org/ns/def/v2.0&amp;lt;/NS&lt;/A&gt;&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;lt;/NAMESPACES&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;lt;TABLE name="ItemGroupDef"&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ItemGroupDef does not reference the NS id = "1".&amp;nbsp; If any sees the issue or has a hint, then I would be happy to read it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 18:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-XMLMAP-NAMESPACES-resulting-in-0-observations/m-p/389613#M93419</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2017-08-21T18:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: XML: XMLMAP NAMESPACES resulting in 0 observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-XMLMAP-NAMESPACES-resulting-in-0-observations/m-p/389615#M93420</link>
      <description>&lt;P&gt;What is the connection to sas ?&lt;/P&gt;
&lt;P&gt;What is your sas code?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 19:01:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-XMLMAP-NAMESPACES-resulting-in-0-observations/m-p/389615#M93420</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-08-21T19:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: XML: XMLMAP NAMESPACES resulting in 0 observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-XMLMAP-NAMESPACES-resulting-in-0-observations/m-p/389622#M93426</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;FONT color="#0000ff"&gt;filename&lt;/FONT&gt; MAP&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080" face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"O:\krviel\cdisc-definexml-2.0.0-1.6\referencexml\define_2a.map"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;FONT color="#0000ff"&gt;libname&lt;/FONT&gt; define&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlv2&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080" face="courier new,courier" size="3"&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;"O:\krviel\cdisc-definexml-2.0.0-1.6\define.xml"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;xmlmap = MAP&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; ItemGroupDef ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp; set&lt;/FONT&gt; define.ItemGroupDef ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;FONT color="#0000ff"&gt;filename&lt;/FONT&gt; MAP&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="courier new,courier" size="3"&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;clear&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;FONT color="#0000ff"&gt;libname&lt;/FONT&gt; define&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;clear&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;I am user v9.4 on Windows, but I started in with the Unicode Support.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times" size="4"&gt;Kevin&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 19:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-XMLMAP-NAMESPACES-resulting-in-0-observations/m-p/389622#M93426</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2017-08-21T19:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: XML: XMLMAP NAMESPACES resulting in 0 observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-XMLMAP-NAMESPACES-resulting-in-0-observations/m-p/390738#M93772</link>
      <description>&lt;P&gt;The issue is that I omitted namespaces.&amp;nbsp; Chevell (Parker) of SAS Tech Support, whom I thank, suggested that I debug by creating the automap.&amp;nbsp; The namespaces should be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;NAMESPACES count="3"&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;lt;NS id="1" prefix="xlink"&amp;gt;&lt;A href="http://www.w3.org/1999/xlink&amp;lt;/NS" target="_blank"&gt;http://www.w3.org/1999/xlink&amp;lt;/NS&lt;/A&gt;&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;lt;NS id="2" prefix="def"&amp;gt;&lt;A href="http://www.cdisc.org/ns/def/v2.0&amp;lt;/NS" target="_blank"&gt;http://www.cdisc.org/ns/def/v2.0&amp;lt;/NS&lt;/A&gt;&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;lt;NS id="3" prefix=""&amp;gt;&lt;A href="http://www.cdisc.org/ns/odm/v1.3&amp;lt;/NS" target="_blank"&gt;http://www.cdisc.org/ns/odm/v1.3&amp;lt;/NS&lt;/A&gt;&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;/NAMESPACES&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then the paths would be of this form:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="1"&gt;&amp;lt;PATH syntax="XPathENR"&amp;gt;/&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;{3}&lt;/FONT&gt;&lt;/STRONG&gt;ODM/{3}Study/{3}MetaDataVersion/{3}ItemGroupDef/{3}ItemRef/{1}WhereClauseRef&amp;lt;/PATH&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I now have the observations:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;12709 data ValueListDef ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;12710 set define.ValueListDef ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;12711 run ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;NOTE: There were 3 observations read from the data set DEFINE.ValueListDef.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;NOTE: The data set WORK.VALUELISTDEF has 3 observations and 3 variables.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;NOTE: DATA statement used (Total process time):&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;real time 0.01 seconds&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;cpu time 0.00 seconds&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should have been a clue that the resulting data sets had 0 observations, but the expected number of variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS Note that between the OP and this post that ID for "def" changed.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 19:45:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-XMLMAP-NAMESPACES-resulting-in-0-observations/m-p/390738#M93772</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2017-08-24T19:45:21Z</dc:date>
    </item>
  </channel>
</rss>

