SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

Extracting xml:lang using SAS XML mapper

Senior User
Posts: 1

Extracting xml:lang using SAS XML mapper

[ Edited ]

Hi everyone,

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.

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. 

We tried implementing this with the following XPath:

We also tried


None of them worked. 

Also, the manual of the dataset ( has the following information about xml:lang but we're not sure how/if this would affect XPath for xml:lang. 

"All XML attributes are in the null namespace (attribute form = unqualified), with the exception of xml:lang."

The dataset itself can be found at:

I would really appreciate it if somebody knowledgable in XML could look into this! 

Many thanks,


Posts: 810

Re: Extracting xml:lang using SAS XML mapper

I suggest you contact SAS tech support for this.



Ask a Question
Discussion stats
  • 1 reply
  • 2 in conversation