<?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: Extracting xml:lang using SAS XML mapper in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Extracting-xml-lang-using-SAS-XML-mapper/m-p/254177#M6880</link>
    <description>&lt;P&gt;I suggest you contact SAS tech support for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2016 14:44:45 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2016-03-03T14:44:45Z</dc:date>
    <item>
      <title>Extracting xml:lang using SAS XML mapper</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Extracting-xml-lang-using-SAS-XML-mapper/m-p/250109#M6707</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;Me and my colleagues are working with a dataset that comes in XML format. So far we have been able to extract all of the variables and their attributes to SAS using the XML Map we created, except one -- xml:lang.&lt;BR /&gt;&lt;BR /&gt;xml:lang is an attribute that some of the variables in the dataset might have. For example, there is a variable called LegalName which has an attribute xml:lang. We want to extract the values of this attribute into our SAS dataset as a new variable called LegalName_lang.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;We tried implementing this with the following XPath:&lt;BR /&gt;/{1}LEIData/{1}LEIRecords/{1}LEIRecord/{1}Entity/{1}LegalName/@xml:lang&lt;BR /&gt;&lt;BR /&gt;We also tried&lt;BR /&gt;&lt;BR /&gt;/{1}LEIData/{1}LEIRecords/{1}LEIRecord/{1}Entity/{1}LegalName/@lang&lt;BR /&gt;&lt;BR /&gt;None of them worked.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also, the manual of the dataset (&lt;A href="http://www.leiroc.org/publications/gls/lou_20140620.pdf)" target="_blank"&gt;http://www.leiroc.org/publications/gls/lou_20140620.pdf)&lt;/A&gt; has the following information about xml:lang but we're&amp;nbsp;not sure how/if this would affect XPath for xml:lang.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;"All XML attributes are in the null namespace (attribute form = unqualified), with the exception of xml:lang."&lt;BR /&gt;&lt;BR /&gt;The dataset itself can be found at:&amp;nbsp;&lt;A href="https://www.gleif.org/en/lei-data/gleif-concatenated-file/lei-download" target="_blank"&gt;https://www.gleif.org/en/lei-data/gleif-concatenated-file/lei-download&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I would really appreciate it if somebody knowledgable in XML could look into this!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;&lt;BR /&gt;Julius&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12283iD8826B248DDBA9F6/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.JPG" title="Capture.JPG" /&gt;</description>
      <pubDate>Mon, 15 Feb 2016 15:49:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Extracting-xml-lang-using-SAS-XML-mapper/m-p/250109#M6707</guid>
      <dc:creator>JuliusC</dc:creator>
      <dc:date>2016-02-15T15:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting xml:lang using SAS XML mapper</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Extracting-xml-lang-using-SAS-XML-mapper/m-p/254177#M6880</link>
      <description>&lt;P&gt;I suggest you contact SAS tech support for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 14:44:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Extracting-xml-lang-using-SAS-XML-mapper/m-p/254177#M6880</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-03-03T14:44:45Z</dc:date>
    </item>
  </channel>
</rss>

