Statistical Data and Metadata Exchange (SDMX) User Guide

Table of contents

Table of contents

Introduction

The Statistics Canada SDMX REST web services provide access to the time series made available on the Statistics Canada's website in a structured form. It complies with the SDMX standard. This service is accessible using an HTTP request.

The time series available through Statistics Canada's Common Output Data Repository (CODR) are presented in a form of Canadian indicators/cubes (short-term, structural, specific, etc.) usually representing a set of series/vectors. An indicator/cube is broken down into as many elementary series as there are possible crossover of variables/dimensions. For example, 50 industries * 13 provinces/territories = 650 different series/vectors in CODR.

The SDMX web service allows access:

  • to the values of the series
  • structural metadata describing the characteristics of the series
  • is free of charge

It is possible to quickly extract data using the CODR cube identifier and vectors. In these cases the user must have previously noted the CODR cube identifier or vector identifier from the Statistics Canada website.

What is SDMX?

The Statistical Data and Metadata Exchange initiative is sponsored by seven institutions (the Bank for International Settlements (BIS), the European Central Bank (ECB), Eurostat, the International Monetary Fund (IMF), the Organisation for Economic Co-operation and Development (OECD), the United Nations (UN) and the World Bank) to foster standards for the exchange of statistical information. The first version of the standard is an ISO standard (ISO/Technical Specification 17369:2005). It offers an information model for the representation of statistical data and metadata, as well as several formats to represent this model (SDMX-EDI, SDMX-JSON, SDMX-CSV and several SDMX-ML formats). It also proposes a standard way of implementing web services, including the use of registries.

The SDMX information model in a nutshell

The list below tells you everything you need to know about the SDMX information model in order for us to start developing an application based on the SDMX standard:

  • Descriptor concepts: In order to make sense of some statistical data, we need to know the concepts associated with them. For example, on its own the figure 1.3312 is pretty meaningless, but if we know that this is an exchange rate for the CDN dollar against the US dollar on November 19th, 2019, it starts to make more sense.
  • Packaging structure: Statistical data can be grouped together at the following levels: the observation level (the measurement of some phenomenon); the series level (the measurement of some phenomenon over time, usually at regular intervals); the group level (a group of series – a well-known example being the sibling group, a set of series which are identical, except for the fact that they are measured with different frequencies); and the dataset level (made up of several groups, to cover a specific statistical domain for instance). The descriptor concepts mentioned in point 1 can be attached at various levels in this hierarchy.
  • Dimensions and attributes: There are two types of descriptor concepts: dimensions, which both identify and describe the data, and attributes, which are purely descriptive.
  • Keys: Dimensions are grouped into keys, which allow the identification of a particular set of data (a series, for example). The key values are attached at the series level and given in a fixed sequence. Conventionally, frequency is the first descriptor concept and the other concepts are assigned an order for that particular dataset. Partial keys can be attached to groups.
  • Code lists: Every possible value for a dimension is defined in a code list. Each value on that list is given a language-independent abbreviation (code) and a language-specific description. Attributes are represented sometimes by codes, and sometimes by free-text values. Since the purpose of an attribute is solely to describe and not to identify the data, this is not a problem.
  • Data Structure Definitions: A Data Structure Definition (key family) specifies a set of concepts, which describe and identify a set of data. It tells us which concepts are dimensions (identification and description) and which are attributes (just description), and it gives the attachment level for each of these concepts on the basis of the packaging structure (dataset, group, series or observation), as well as their status (mandatory or conditional). It also specifies which code lists provide possible values for the dimensions and gives possible values for the attributes, either as code lists or free text fields.

The various SDMX-ML formats

SDMX-ML supports various use cases and, therefore, defines several XML formats. For the purpose of this guide, the following two formats will be used:

  • The Structure Definition format : This format will be used to define the structure (concepts, code lists, dimensions, attributes, etc.) of the key families.
  • The Compact format: This format will be used to define the data file. It is not a generic format (it is specific to a Data Structure Definition), but it is designed to support validation and is much more compact so as to support the exchange of large datasets.

The SDMX information model is much richer than this limited introduction, however the above should be sufficient to understand the basics of this web service. For additional information, please refer to the SDMX documentation.

SDMX Data (cube) Web Service

All the data stored in CODR can be retrieved using the query string described below.

protocol://wsEntryPoint/resource/flowRef/key?parameters

where parameters are defined as such:

startPeriod=value&endPeriod=value&firstNObservations=value&lastNObservations=value&detail=value

SDMX Data (cube) Web Service Syntax definition

protocol
The web service is available over http and https.
wsEntryPoint
The web service entry point is available at the same location of the sdmx data and metadata entry point.
resource
The resource for queries is dataflow.
flowRef

A reference to the dataflow describing the data that needs to be returned.

The syntax is the identifier of the agency maintaining the dataflow, followed by the identifier of the dataflow, followed by the dataflow version, separated by a ,(comma).

For example: AGENCY_ID, FLOW_ID, VERSION

If the parameter contains only one of these 3 elements, it is considered to be the identifier of the dataflow. The value for the identifier of the agency maintaining the dataflow will default to all, while the value for the dataflow version will default to latest.

If the string contains only two of these 3 elements, they are considered to be the identifier of the agency maintaining the dataflow and the identifier of the dataflow. The value for the dataflow version will default to latest.

key

The combination of dimensions allows statistical data to be uniquely identified. Such a combination is known as a series key in SDMX and this is what is needed in the key parameter.

Let's say for example that exchange rates can be uniquely identified by the following:

  • the frequency at which they are measured (e.g.: on a daily basis - code D),
  • the currency being measured (e.g.: US dollar - code USD),
  • the currency against which a currency is being measured (e.g.: Euro - code EUR),
  • the type of exchange rates (Foreign exchange reference rates - code SP00) and
  • the series variation (such as average or standardized measure for given frequency, code A).

In order to build the series key, you need to take the value for each of the dimensions (in the order in which the dimensions are defined in the DSD) and separate them with a .(dot). The series key for the example above therefore becomes: D.USD.EUR.SP00.A

Wildcarding is supported by omitting the value for the dimension to be wildcarded. For example, the following series key can be used to retrieve the data for all daily currencies against the euro: D..EUR.SP00.A

The OR operator is supported using the + (plus) character. For example, the following key can be used to retrieve the exchange rates against the euro for both the US dollar and the Japanese Yen: D.USD+JPY.EUR.SP00.A

You can of course combine wildcarding and the OR operator. For example, the following key can be used to retrieve daily or monthly exchange rates of any currency against the euro: D+M..EUR.SP00.A

startPeriod & endPeriod

It is possible to define a date range for which observations should be returned by using the startPeriod and/or endPeriod parameters. The values should be given according to the syntax defined in ISO 8601 or as SDMX reporting periods. The format will vary depending on the frequency.

The supported formats are:

  • YYYY for annual data (e.g.: 2013).
  • YYYY-MM for monthly data (e.g.: 2013-01).
  • YYYY-MM-DD for daily data (e.g.: 2013-01-01).
Detail

Using the detail parameter, it is possible to specify the desired amount of information to be returned by the web service.

Possible options are:

  • full: The data (series and observations) and the attributes will be returned. This is the default.
firstNObservations & lastNObservations
Using the firstNObservations and/or lastNObservations parameters, it is possible to specify the maximum number of observations to be returned for each of the matching series, starting from the first observation (firstNObservations) or counting back from the most recent observation (lastNObservations).

SDMX Data (cube) Web Service Examples

1. Retrieve the data for the series 1.1.1 (Canada / Both sexes / All ages) for the 17100005 dataflow. Table 17100005 is presented in full details in appendix 1.

https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_17100005/1.1.1

Results

SDMX-ML 2.1 Generic Data
<?xml version="1.0" encoding="utf-8"?><!--NSI Web Service v7.8.0.0--><message:GenericData xmlns:footer="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message/footer" xmlns:generic="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/generic" xmlns:message="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message" xmlns:common="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xml="http://www.w3.org/XML/1998/namespace"><message:Header><message:ID>IREFe1bc0f6d2dcc41219f43d827cc979106</message:ID><message:Test>true</message:Test><message:Prepared>2019-11-26T00:12:41</message:Prepared><message:Sender id="NOT_CONFIGURED" /><message:Structure structureID="StatCan_Data_Structure_17100005_1_0" dimensionAtObservation="TIME_PERIOD"><common:Structure><Ref agencyID="StatCan" id="Data_Structure_17100005" version="1.0" /></common:Structure></message:Structure><message:DataSetAction>Information</message:DataSetAction></message:Header><message:DataSet action="Information" structureRef="StatCan_Data_Structure_17100005_1_0"><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="1" /><generic:Value id="Sex" value="1" /><generic:Value id="Age_group" value="1" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000011124" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="466668" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2012" /><generic:ObsValue value="34714222" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2013" /><generic:ObsValue value="35082954" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2014" /><generic:ObsValue value="35437435" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="35702908" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="36109487" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2017" /><generic:ObsValue value="36543321" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2018" /><generic:ObsValue value="37057765" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2019" /><generic:ObsValue value="37589262" /></generic:Obs></generic:Series></message:DataSet></message:GenericData>
SDMX-ML 2.1 Structure Specific Data
<?xml version="1.0" encoding="utf-8"?><!--NSI Web Service v7.8.0.0--><message:StructureSpecificData xmlns:ss="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/structurespecific" xmlns:footer="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message/footer" xmlns:ns1="urn:sdmx:org.sdmx.infomodel.datastructure.DataStructure=StatCan:Data_Structure_17100005(1.0):ObsLevelDim:TIME_PERIOD" xmlns:message="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message" xmlns:common="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xml="http://www.w3.org/XML/1998/namespace"><message:Header><message:ID>IREF6c6123ee03f2474e8c8966362092d5da</message:ID><message:Test>true</message:Test><message:Prepared>2019-11-26T00:12:41</message:Prepared><message:Sender id="NOT_CONFIGURED" /><message:Structure structureID="StatCan_Data_Structure_17100005_1_0" namespace="urn:sdmx:org.sdmx.infomodel.datastructure.DataStructure=StatCan:Data_Structure_17100005(1.0):ObsLevelDim:TIME_PERIOD" dimensionAtObservation="TIME_PERIOD"><common:Structure><Ref agencyID="StatCan" id="Data_Structure_17100005" version="1.0" /></common:Structure></message:Structure><message:DataSetAction>Information</message:DataSetAction></message:Header><message:DataSet action="Information" ss:dataScope="DataStructure" xsi:type="ns1:DataSetType" ss:structureRef="StatCan_Data_Structure_17100005_1_0"><Series Geography="1" Sex="1" Age_group="1" UOM="249" DGUID="2016A000011124" SCALAR_FACTOR="0" VECTOR_ID="466668" NB_DECIMAL="0"><Obs TIME_PERIOD="2012" OBS_VALUE="34714222" /><Obs TIME_PERIOD="2013" OBS_VALUE="35082954" /><Obs TIME_PERIOD="2014" OBS_VALUE="35437435" /><Obs TIME_PERIOD="2015" OBS_VALUE="35702908" /><Obs TIME_PERIOD="2016" OBS_VALUE="36109487" /><Obs TIME_PERIOD="2017" OBS_VALUE="36543321" /><Obs TIME_PERIOD="2018" OBS_VALUE="37057765" /><Obs TIME_PERIOD="2019" OBS_VALUE="37589262" /></Series></message:DataSet></message:StructureSpecificData>
SDMX-JSON
{"header":{"id":"IREFc0e7b4d85c50461c912ed378b326730c","prepared":"2019-11-26T00:12:50","test":true,"sender":{"id":"NOT_CONFIGURED","name":"unknown"}},"dataSets":[{"action":"Information","annotations":[],"series":{"0:0:0":{"attributes":[0,0,0,0,0,null],"annotations":[],"observations":{"0":[34714222],"1":[35082954],"2":[35437435],"3":[35702908],"4":[36109487],"5":[36543321],"6":[37057765],"7":[37589262]}}}}],"structure":{"name":"Population estimates on July 1st, by age and sex","description":"","dimensions":{"dataset":[],"series":[{"id":"Geography","name":"Geography","keyPosition":0,"role":"Geography","values":[{"id":"1","name":"Canada"}]},{"id":"Sex","name":"Sex","keyPosition":1,"role":"Sex","values":[{"id":"1","name":"Both sexes"}]},{"id":"Age_group","name":"Age group","keyPosition":2,"role":"Age_group","values":[{"id":"1","name":"All ages"}]}],"observation":[{"id":"TIME_PERIOD","name":"Time","keyPosition":3,"role":"TIME_PERIOD","values":[{"start":"2012-01-01T00:00:00","end":"2012-12-31T23:59:59","id":"2012","name":"2012"},{"start":"2013-01-01T00:00:00","end":"2013-12-31T23:59:59","id":"2013","name":"2013"},{"start":"2014-01-01T00:00:00","end":"2014-12-31T23:59:59","id":"2014","name":"2014"},{"start":"2015-01-01T00:00:00","end":"2015-12-31T23:59:59","id":"2015","name":"2015"},{"start":"2016-01-01T00:00:00","end":"2016-12-31T23:59:59","id":"2016","name":"2016"},{"start":"2017-01-01T00:00:00","end":"2017-12-31T23:59:59","id":"2017","name":"2017"},{"start":"2018-01-01T00:00:00","end":"2018-12-31T23:59:59","id":"2018","name":"2018"},{"start":"2019-01-01T00:00:00","end":"2019-12-31T23:59:59","id":"2019","name":"2019"}]}]},"attributes":{"dataSet":[],"series":[{"id":"UOM","name":"Unit of measure","role":"UOM","values":[{"id":"249","name":"Persons"}]},{"id":"DGUID","name":"DGUID","role":"DGUID","values":[{"id":"2016A000011124","name":"2016A000011124"}]},{"id":"SCALAR_FACTOR","name":"Scalar Factor","role":"SCALAR_FACTOR","values":[{"id":"0","name":"units"}]},{"id":"VECTOR_ID","name":"Vector ID","role":"VECTOR_ID","values":[{"id":"466668","name":"466668"}]},{"id":"NB_DECIMAL","name":"Number of decimal","role":"NB_DECIMAL","values":[{"id":"0","name":"0"}]},{"id":"TERMINATED","name":"Terminated","role":"TERMINATED","values":[]}],"observation":[{"id":"SYMBOL","name":"Symbol","role":"SYMBOL","values":[]},{"id":"STATUS_CAN","name":"Status","role":"STATUS_CAN","values":[]},{"id":"SECURITY_LEVEL","name":"Security Level","role":"SECURITY_LEVEL","values":[]}]},"annotations":[]}}
2. Retrieve the data for the series 1.2+3.1 (Canada / Male & Female / All ages) for the 17100005 dataflow. Table 17100005 is presented in full details in appendix 1.

https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_17100005/1.2+3.1

Results

SDMX-ML 2.1 Generic Data
<?xml version="1.0" encoding="utf-8"?><!--NSI Web Service v7.8.0.0--><message:GenericData xmlns:footer="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message/footer" xmlns:generic="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/generic" xmlns:message="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message" xmlns:common="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xml="http://www.w3.org/XML/1998/namespace"><message:Header><message:ID>IREFf7ccf4e1550b46f9b91a43343e5debd3</message:ID><message:Test>true</message:Test><message:Prepared>2019-11-26T00:17:08</message:Prepared><message:Sender id="NOT_CONFIGURED" /><message:Structure structureID="StatCan_Data_Structure_17100005_1_0" dimensionAtObservation="TIME_PERIOD"><common:Structure><Ref agencyID="StatCan" id="Data_Structure_17100005" version="1.0" /></common:Structure></message:Structure><message:DataSetAction>Information</message:DataSetAction></message:Header><message:DataSet action="Information" structureRef="StatCan_Data_Structure_17100005_1_0"><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="1" /><generic:Value id="Sex" value="3" /><generic:Value id="Age_group" value="1" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000011124" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="466670" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2012" /><generic:ObsValue value="17504322" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2013" /><generic:ObsValue value="17681789" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2014" /><generic:ObsValue value="17855738" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="17990107" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="18192991" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2017" /><generic:ObsValue value="18408053" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2018" /><generic:ObsValue value="18655084" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2019" /><generic:ObsValue value="18911177" /></generic:Obs></generic:Series><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="1" /><generic:Value id="Sex" value="2" /><generic:Value id="Age_group" value="1" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000011124" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="466669" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2012" /><generic:ObsValue value="17209900" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2013" /><generic:ObsValue value="17401165" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2014" /><generic:ObsValue value="17581697" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="17712801" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="17916496" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2017" /><generic:ObsValue value="18135268" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2018" /><generic:ObsValue value="18402681" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2019" /><generic:ObsValue value="18678085" /></generic:Obs></generic:Series></message:DataSet></message:GenericData>
SDMX-ML 2.1 Structure Specific Data
<?xml version="1.0" encoding="utf-8"?><!--NSI Web Service v7.8.0.0--><message:StructureSpecificData xmlns:ss="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/structurespecific" xmlns:footer="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message/footer" xmlns:ns1="urn:sdmx:org.sdmx.infomodel.datastructure.DataStructure=StatCan:Data_Structure_17100005(1.0):ObsLevelDim:TIME_PERIOD" xmlns:message="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message" xmlns:common="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xml="http://www.w3.org/XML/1998/namespace"><message:Header><message:ID>IREF36867abba54c43c29ec589d4027bf84d</message:ID><message:Test>true</message:Test><message:Prepared>2019-11-26T00:17:07</message:Prepared><message:Sender id="NOT_CONFIGURED" /><message:Structure structureID="StatCan_Data_Structure_17100005_1_0" namespace="urn:sdmx:org.sdmx.infomodel.datastructure.DataStructure=StatCan:Data_Structure_17100005(1.0):ObsLevelDim:TIME_PERIOD" dimensionAtObservation="TIME_PERIOD"><common:Structure><Ref agencyID="StatCan" id="Data_Structure_17100005" version="1.0" /></common:Structure></message:Structure><message:DataSetAction>Information</message:DataSetAction></message:Header><message:DataSet action="Information" ss:dataScope="DataStructure" xsi:type="ns1:DataSetType" ss:structureRef="StatCan_Data_Structure_17100005_1_0"><Series Geography="1" Sex="3" Age_group="1" UOM="249" DGUID="2016A000011124" SCALAR_FACTOR="0" VECTOR_ID="466670" NB_DECIMAL="0"><Obs TIME_PERIOD="2012" OBS_VALUE="17504322" /><Obs TIME_PERIOD="2013" OBS_VALUE="17681789" /><Obs TIME_PERIOD="2014" OBS_VALUE="17855738" /><Obs TIME_PERIOD="2015" OBS_VALUE="17990107" /><Obs TIME_PERIOD="2016" OBS_VALUE="18192991" /><Obs TIME_PERIOD="2017" OBS_VALUE="18408053" /><Obs TIME_PERIOD="2018" OBS_VALUE="18655084" /><Obs TIME_PERIOD="2019" OBS_VALUE="18911177" /></Series><Series Geography="1" Sex="2" Age_group="1" UOM="249" DGUID="2016A000011124" SCALAR_FACTOR="0" VECTOR_ID="466669" NB_DECIMAL="0"><Obs TIME_PERIOD="2012" OBS_VALUE="17209900" /><Obs TIME_PERIOD="2013" OBS_VALUE="17401165" /><Obs TIME_PERIOD="2014" OBS_VALUE="17581697" /><Obs TIME_PERIOD="2015" OBS_VALUE="17712801" /><Obs TIME_PERIOD="2016" OBS_VALUE="17916496" /><Obs TIME_PERIOD="2017" OBS_VALUE="18135268" /><Obs TIME_PERIOD="2018" OBS_VALUE="18402681" /><Obs TIME_PERIOD="2019" OBS_VALUE="18678085" /></Series></message:DataSet></message:StructureSpecificData>
SDMX-JSON
{"header":{"id":"IREF70e5ea2ecc1c47fba2695be637395233","prepared":"2019-11-26T00:17:10","test":true,"sender":{"id":"NOT_CONFIGURED","name":"unknown"}},"dataSets":[{"action":"Information","annotations":[],"series":{"0:0:0":{"attributes":[0,0,0,0,0,null],"annotations":[],"observations":{"0":[17504322],"1":[17681789],"2":[17855738],"3":[17990107],"4":[18192991],"5":[18408053],"6":[18655084],"7":[18911177]}},"0:1:0":{"attributes":[0,0,0,1,0,null],"annotations":[],"observations":{"0":[17209900],"1":[17401165],"2":[17581697],"3":[17712801],"4":[17916496],"5":[18135268],"6":[18402681],"7":[18678085]}}}}],"structure":{"name":"Population estimates on July 1st, by age and sex","description":"","dimensions":{"dataset":[],"series":[{"id":"Geography","name":"Geography","keyPosition":0,"role":"Geography","values":[{"id":"1","name":"Canada"}]},{"id":"Sex","name":"Sex","keyPosition":1,"role":"Sex","values":[{"id":"3","name":"Females"},{"id":"2","name":"Males"}]},{"id":"Age_group","name":"Age group","keyPosition":2,"role":"Age_group","values":[{"id":"1","name":"All ages"}]}],"observation":[{"id":"TIME_PERIOD","name":"Time","keyPosition":3,"role":"TIME_PERIOD","values":[{"start":"2012-01-01T00:00:00","end":"2012-12-31T23:59:59","id":"2012","name":"2012"},{"start":"2013-01-01T00:00:00","end":"2013-12-31T23:59:59","id":"2013","name":"2013"},{"start":"2014-01-01T00:00:00","end":"2014-12-31T23:59:59","id":"2014","name":"2014"},{"start":"2015-01-01T00:00:00","end":"2015-12-31T23:59:59","id":"2015","name":"2015"},{"start":"2016-01-01T00:00:00","end":"2016-12-31T23:59:59","id":"2016","name":"2016"},{"start":"2017-01-01T00:00:00","end":"2017-12-31T23:59:59","id":"2017","name":"2017"},{"start":"2018-01-01T00:00:00","end":"2018-12-31T23:59:59","id":"2018","name":"2018"},{"start":"2019-01-01T00:00:00","end":"2019-12-31T23:59:59","id":"2019","name":"2019"}]}]},"attributes":{"dataSet":[],"series":[{"id":"UOM","name":"Unit of measure","role":"UOM","values":[{"id":"249","name":"Persons"}]},{"id":"DGUID","name":"DGUID","role":"DGUID","values":[{"id":"2016A000011124","name":"2016A000011124"}]},{"id":"SCALAR_FACTOR","name":"Scalar Factor","role":"SCALAR_FACTOR","values":[{"id":"0","name":"units"}]},{"id":"VECTOR_ID","name":"Vector ID","role":"VECTOR_ID","values":[{"id":"466670","name":"466670"},{"id":"466669","name":"466669"}]},{"id":"NB_DECIMAL","name":"Number of decimal","role":"NB_DECIMAL","values":[{"id":"0","name":"0"}]},{"id":"TERMINATED","name":"Terminated","role":"TERMINATED","values":[]}],"observation":[{"id":"SYMBOL","name":"Symbol","role":"SYMBOL","values":[]},{"id":"STATUS_CAN","name":"Status","role":"STATUS_CAN","values":[]},{"id":"SECURITY_LEVEL","name":"Security Level","role":"SECURITY_LEVEL","values":[]}]},"annotations":[]}}
3. Retrieve the data for the series .1.138 (all geographies / Both sexes / 100 years and over) for the 17100005 dataflow and for the reference years 2015 & 2016. Table 17100005 is presented in full details in appendix 1.

https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_17100005/.1.138?startPeriod=2015&endPeriod=2016

Results

SDMX-ML 2.1 Generic Data
<?xml version="1.0" encoding="utf-8"?><!--NSI Web Service v7.8.0.0--><message:GenericData xmlns:footer="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message/footer" xmlns:generic="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/generic" xmlns:message="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message" xmlns:common="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xml="http://www.w3.org/XML/1998/namespace"><message:Header><message:ID>IREFe55da3e3a9cb49a8bf2e3a9846e3e9cb</message:ID><message:Test>true</message:Test><message:Prepared>2019-11-28T00:06:41</message:Prepared><message:Sender id="NOT_CONFIGURED" /><message:Structure structureID="StatCan_Data_Structure_17100005_1_0" dimensionAtObservation="TIME_PERIOD"><common:Structure><Ref agencyID="StatCan" id="Data_Structure_17100005" version="1.0" /></common:Structure></message:Structure><message:DataSetAction>Information</message:DataSetAction></message:Header><message:DataSet action="Information" structureRef="StatCan_Data_Structure_17100005_1_0"><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="2" /><generic:Value id="Sex" value="1" /><generic:Value id="Age_group" value="138" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000210" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="31226575" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="107" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="99" /></generic:Obs></generic:Series><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="15" /><generic:Value id="Sex" value="1" /><generic:Value id="Age_group" value="138" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000262" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="31227082" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="1" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="1" /></generic:Obs></generic:Series><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="5" /><generic:Value id="Sex" value="1" /><generic:Value id="Age_group" value="138" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000213" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="31226692" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="212" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="209" /></generic:Obs></generic:Series><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="11" /><generic:Value id="Sex" value="1" /><generic:Value id="Age_group" value="138" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000259" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="31226926" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="1342" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="1371" /></generic:Obs></generic:Series><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="9" /><generic:Value id="Sex" value="1" /><generic:Value id="Age_group" value="138" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000247" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="31226848" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="445" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="407" /></generic:Obs></generic:Series><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="14" /><generic:Value id="Sex" value="1" /><generic:Value id="Age_group" value="138" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000261" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="31227043" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="1" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="3" /></generic:Obs></generic:Series><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="6" /><generic:Value id="Sex" value="1" /><generic:Value id="Age_group" value="138" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000224" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="31226731" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="1719" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="2008" /></generic:Obs></generic:Series><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="12" /><generic:Value id="Sex" value="1" /><generic:Value id="Age_group" value="138" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000260" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="31226965" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="0" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="0" /></generic:Obs></generic:Series><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="8" /><generic:Value id="Sex" value="1" /><generic:Value id="Age_group" value="138" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000246" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="31226809" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="375" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="446" /></generic:Obs></generic:Series><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="7" /><generic:Value id="Sex" value="1" /><generic:Value id="Age_group" value="138" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000235" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="31226770" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="2790" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="3067" /></generic:Obs></generic:Series><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="4" /><generic:Value id="Sex" value="1" /><generic:Value id="Age_group" value="138" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000212" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="31226653" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="263" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="279" /></generic:Obs></generic:Series><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="1" /><generic:Value id="Sex" value="1" /><generic:Value id="Age_group" value="138" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000011124" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="31226536" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="7911" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="8643" /></generic:Obs></generic:Series><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="3" /><generic:Value id="Sex" value="1" /><generic:Value id="Age_group" value="138" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000211" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="31226614" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="37" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="36" /></generic:Obs></generic:Series><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="10" /><generic:Value id="Sex" value="1" /><generic:Value id="Age_group" value="138" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000248" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="31226887" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="619" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="717" /></generic:Obs></generic:Series></message:DataSet></message:GenericData>
SDMX-ML 2.1 Structure Specific Data
<?xml version="1.0" encoding="utf-8"?><!--NSI Web Service v7.8.0.0--><message:StructureSpecificData xmlns:ss="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/structurespecific" xmlns:footer="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message/footer" xmlns:ns1="urn:sdmx:org.sdmx.infomodel.datastructure.DataStructure=StatCan:Data_Structure_17100005(1.0):ObsLevelDim:TIME_PERIOD" xmlns:message="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message" xmlns:common="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xml="http://www.w3.org/XML/1998/namespace"><message:Header><message:ID>IREF4aa123a91bd145399d7f81a9cc45d5b1</message:ID><message:Test>true</message:Test><message:Prepared>2019-11-28T00:06:41</message:Prepared><message:Sender id="NOT_CONFIGURED" /><message:Structure structureID="StatCan_Data_Structure_17100005_1_0" namespace="urn:sdmx:org.sdmx.infomodel.datastructure.DataStructure=StatCan:Data_Structure_17100005(1.0):ObsLevelDim:TIME_PERIOD" dimensionAtObservation="TIME_PERIOD"><common:Structure><Ref agencyID="StatCan" id="Data_Structure_17100005" version="1.0" /></common:Structure></message:Structure><message:DataSetAction>Information</message:DataSetAction></message:Header><message:DataSet action="Information" ss:dataScope="DataStructure" xsi:type="ns1:DataSetType" ss:structureRef="StatCan_Data_Structure_17100005_1_0"><Series Geography="2" Sex="1" Age_group="138" UOM="249" DGUID="2016A000210" SCALAR_FACTOR="0" VECTOR_ID="31226575" NB_DECIMAL="0"><Obs TIME_PERIOD="2015" OBS_VALUE="107" /><Obs TIME_PERIOD="2016" OBS_VALUE="99" /></Series><Series Geography="15" Sex="1" Age_group="138" UOM="249" DGUID="2016A000262" SCALAR_FACTOR="0" VECTOR_ID="31227082" NB_DECIMAL="0"><Obs TIME_PERIOD="2015" OBS_VALUE="1" /><Obs TIME_PERIOD="2016" OBS_VALUE="1" /></Series><Series Geography="5" Sex="1" Age_group="138" UOM="249" DGUID="2016A000213" SCALAR_FACTOR="0" VECTOR_ID="31226692" NB_DECIMAL="0"><Obs TIME_PERIOD="2015" OBS_VALUE="212" /><Obs TIME_PERIOD="2016" OBS_VALUE="209" /></Series><Series Geography="11" Sex="1" Age_group="138" UOM="249" DGUID="2016A000259" SCALAR_FACTOR="0" VECTOR_ID="31226926" NB_DECIMAL="0"><Obs TIME_PERIOD="2015" OBS_VALUE="1342" /><Obs TIME_PERIOD="2016" OBS_VALUE="1371" /></Series><Series Geography="9" Sex="1" Age_group="138" UOM="249" DGUID="2016A000247" SCALAR_FACTOR="0" VECTOR_ID="31226848" NB_DECIMAL="0"><Obs TIME_PERIOD="2015" OBS_VALUE="445" /><Obs TIME_PERIOD="2016" OBS_VALUE="407" /></Series><Series Geography="14" Sex="1" Age_group="138" UOM="249" DGUID="2016A000261" SCALAR_FACTOR="0" VECTOR_ID="31227043" NB_DECIMAL="0"><Obs TIME_PERIOD="2015" OBS_VALUE="1" /><Obs TIME_PERIOD="2016" OBS_VALUE="3" /></Series><Series Geography="6" Sex="1" Age_group="138" UOM="249" DGUID="2016A000224" SCALAR_FACTOR="0" VECTOR_ID="31226731" NB_DECIMAL="0"><Obs TIME_PERIOD="2015" OBS_VALUE="1719" /><Obs TIME_PERIOD="2016" OBS_VALUE="2008" /></Series><Series Geography="12" Sex="1" Age_group="138" UOM="249" DGUID="2016A000260" SCALAR_FACTOR="0" VECTOR_ID="31226965" NB_DECIMAL="0"><Obs TIME_PERIOD="2015" OBS_VALUE="0" /><Obs TIME_PERIOD="2016" OBS_VALUE="0" /></Series><Series Geography="8" Sex="1" Age_group="138" UOM="249" DGUID="2016A000246" SCALAR_FACTOR="0" VECTOR_ID="31226809" NB_DECIMAL="0"><Obs TIME_PERIOD="2015" OBS_VALUE="375" /><Obs TIME_PERIOD="2016" OBS_VALUE="446" /></Series><Series Geography="7" Sex="1" Age_group="138" UOM="249" DGUID="2016A000235" SCALAR_FACTOR="0" VECTOR_ID="31226770" NB_DECIMAL="0"><Obs TIME_PERIOD="2015" OBS_VALUE="2790" /><Obs TIME_PERIOD="2016" OBS_VALUE="3067" /></Series><Series Geography="4" Sex="1" Age_group="138" UOM="249" DGUID="2016A000212" SCALAR_FACTOR="0" VECTOR_ID="31226653" NB_DECIMAL="0"><Obs TIME_PERIOD="2015" OBS_VALUE="263" /><Obs TIME_PERIOD="2016" OBS_VALUE="279" /></Series><Series Geography="1" Sex="1" Age_group="138" UOM="249" DGUID="2016A000011124" SCALAR_FACTOR="0" VECTOR_ID="31226536" NB_DECIMAL="0"><Obs TIME_PERIOD="2015" OBS_VALUE="7911" /><Obs TIME_PERIOD="2016" OBS_VALUE="8643" /></Series><Series Geography="3" Sex="1" Age_group="138" UOM="249" DGUID="2016A000211" SCALAR_FACTOR="0" VECTOR_ID="31226614" NB_DECIMAL="0"><Obs TIME_PERIOD="2015" OBS_VALUE="37" /><Obs TIME_PERIOD="2016" OBS_VALUE="36" /></Series><Series Geography="10" Sex="1" Age_group="138" UOM="249" DGUID="2016A000248" SCALAR_FACTOR="0" VECTOR_ID="31226887" NB_DECIMAL="0"><Obs TIME_PERIOD="2015" OBS_VALUE="619" /><Obs TIME_PERIOD="2016" OBS_VALUE="717" /></Series></message:DataSet></message:StructureSpecificData>
SDMX-JSON
{"header":{"id":"IREFe54d9d171ea440efac8ea032cbbe156c","prepared":"2019-11-28T00:06:42","test":true,"sender":{"id":"NOT_CONFIGURED","name":"unknown"}},"dataSets":[{"action":"Information","annotations":[],"series":{"0:0:0":{"attributes":[0,0,0,0,0,null],"annotations":[],"observations":{"0":[107],"1":[99]}},"1:0:0":{"attributes":[0,1,0,1,0,null],"annotations":[],"observations":{"0":[1],"1":[1]}},"2:0:0":{"attributes":[0,2,0,2,0,null],"annotations":[],"observations":{"0":[212],"1":[209]}},"3:0:0":{"attributes":[0,3,0,3,0,null],"annotations":[],"observations":{"0":[1342],"1":[1371]}},"4:0:0":{"attributes":[0,4,0,4,0,null],"annotations":[],"observations":{"0":[445],"1":[407]}},"5:0:0":{"attributes":[0,5,0,5,0,null],"annotations":[],"observations":{"0":[1],"1":[3]}},"6:0:0":{"attributes":[0,6,0,6,0,null],"annotations":[],"observations":{"0":[1719],"1":[2008]}},"7:0:0":{"attributes":[0,7,0,7,0,null],"annotations":[],"observations":{"0":[0],"1":[0]}},"8:0:0":{"attributes":[0,8,0,8,0,null],"annotations":[],"observations":{"0":[375],"1":[446]}},"9:0:0":{"attributes":[0,9,0,9,0,null],"annotations":[],"observations":{"0":[2790],"1":[3067]}},"10:0:0":{"attributes":[0,10,0,10,0,null],"annotations":[],"observations":{"0":[263],"1":[279]}},"11:0:0":{"attributes":[0,11,0,11,0,null],"annotations":[],"observations":{"0":[7911],"1":[8643]}},"12:0:0":{"attributes":[0,12,0,12,0,null],"annotations":[],"observations":{"0":[37],"1":[36]}},"13:0:0":{"attributes":[0,13,0,13,0,null],"annotations":[],"observations":{"0":[619],"1":[717]}}}}],"structure":{"name":"Population estimates on July 1st, by age and sex","description":"","dimensions":{"dataset":[],"series":[{"id":"Geography","name":"Geography","keyPosition":0,"role":"Geography","values":[{"id":"2","name":"Newfoundland and Labrador"},{"id":"15","name":"Nunavut"},{"id":"5","name":"New Brunswick"},{"id":"11","name":"British Columbia"},{"id":"9","name":"Saskatchewan"},{"id":"14","name":"Northwest Territories"},{"id":"6","name":"Quebec"},{"id":"12","name":"Yukon"},{"id":"8","name":"Manitoba"},{"id":"7","name":"Ontario"},{"id":"4","name":"Nova Scotia"},{"id":"1","name":"Canada"},{"id":"3","name":"Prince Edward Island"},{"id":"10","name":"Alberta"}]},{"id":"Sex","name":"Sex","keyPosition":1,"role":"Sex","values":[{"id":"1","name":"Both sexes"}]},{"id":"Age_group","name":"Age group","keyPosition":2,"role":"Age_group","values":[{"id":"138","name":"100 years and over"}]}],"observation":[{"id":"TIME_PERIOD","name":"Time","keyPosition":3,"role":"TIME_PERIOD","values":[{"start":"2015-01-01T00:00:00","end":"2015-12-31T23:59:59","id":"2015","name":"2015"},{"start":"2016-01-01T00:00:00","end":"2016-12-31T23:59:59","id":"2016","name":"2016"}]}]},"attributes":{"dataSet":[],"series":[{"id":"UOM","name":"Unit of measure","role":"UOM","values":[{"id":"249","name":"Persons"}]},{"id":"DGUID","name":"DGUID","role":"DGUID","values":[{"id":"2016A000210","name":"2016A000210"},{"id":"2016A000262","name":"2016A000262"},{"id":"2016A000213","name":"2016A000213"},{"id":"2016A000259","name":"2016A000259"},{"id":"2016A000247","name":"2016A000247"},{"id":"2016A000261","name":"2016A000261"},{"id":"2016A000224","name":"2016A000224"},{"id":"2016A000260","name":"2016A000260"},{"id":"2016A000246","name":"2016A000246"},{"id":"2016A000235","name":"2016A000235"},{"id":"2016A000212","name":"2016A000212"},{"id":"2016A000011124","name":"2016A000011124"},{"id":"2016A000211","name":"2016A000211"},{"id":"2016A000248","name":"2016A000248"}]},{"id":"SCALAR_FACTOR","name":"Scalar Factor","role":"SCALAR_FACTOR","values":[{"id":"0","name":"units"}]},{"id":"VECTOR_ID","name":"Vector ID","role":"VECTOR_ID","values":[{"id":"31226575","name":"31226575"},{"id":"31227082","name":"31227082"},{"id":"31226692","name":"31226692"},{"id":"31226926","name":"31226926"},{"id":"31226848","name":"31226848"},{"id":"31227043","name":"31227043"},{"id":"31226731","name":"31226731"},{"id":"31226965","name":"31226965"},{"id":"31226809","name":"31226809"},{"id":"31226770","name":"31226770"},{"id":"31226653","name":"31226653"},{"id":"31226536","name":"31226536"},{"id":"31226614","name":"31226614"},{"id":"31226887","name":"31226887"}]},{"id":"NB_DECIMAL","name":"Number of decimal","role":"NB_DECIMAL","values":[{"id":"0","name":"0"}]},{"id":"TERMINATED","name":"Terminated","role":"TERMINATED","values":[]}],"observation":[{"id":"SYMBOL","name":"Symbol","role":"SYMBOL","values":[]},{"id":"STATUS_CAN","name":"Status","role":"STATUS_CAN","values":[]},{"id":"SECURITY_LEVEL","name":"Security Level","role":"SECURITY_LEVEL","values":[]}]},"annotations":[]}}

SDMX Data (vector) Web Service

All the data stored in CODR can be retrieved using the query string described below.

 protocol://wsEntryPoint/resource/vector?parameters

where parameters are defined as such:

startPeriod=value&endPeriod=value&firstNObservations=value&lastNObservations=value&detail=value

Syntax definition

protocol
The web service is available over http and https.
wsEntryPoint
The web service entry point is available at the same location of the sdmx data and metadata entry point.
resource
The resource for vector queries is vector.
vector
The vector allows statistical time series to be identified. Vectors are unique identifiers to a time series of data points. (i.e. v123456) They do not change over time. Given the vector number does not change, users can still use the same vectors as shortcuts to their data points of interest.
startPeriod & endPeriod

It is possible to define a date range for which observations should be returned by using the startPeriod and/or endPeriod parameters. The values should be given according to the syntax defined in ISO 8601 or as SDMX reporting periods. The format will vary depending on the frequency.

The supported formats are:

  • YYYY for annual data (e.g.: 2013).
  • YYYY-MM for monthly data (e.g.: 2013-01).
  • YYYY-MM-DD for daily data (e.g.: 2013-01-01).
Detail

Using the detail parameter, it is possible to specify the desired amount of information to be returned by the web service.

Possible options are:

  • full: The data (series and observations) and the attributes will be returned. This is the default.
firstNObservations & lastNObservations
Using the firstNObservations and/or lastNObservations parameters, it is possible to specify the maximum number of observations to be returned for each of the matching series, starting from the first observation (firstNObservations) or counting back from the most recent observation (lastNObservations).

Examples

4. Retrieve the data for the series (vectors) 466670 (Canada / Male / All ages). Table 17100005 is presented in full details in appendix 1.

https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/vector/v466670

Results

SDMX-ML 2.1 Generic Data
<?xml version="1.0" encoding="utf-8"?><!--NSI Web Service v7.8.0.0--><message:GenericData xmlns:footer="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message/footer" xmlns:generic="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/generic" xmlns:message="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message" xmlns:common="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xml="http://www.w3.org/XML/1998/namespace"><message:Header><message:ID>IREFf7ccf4e1550b46f9b91a43343e5debd3</message:ID><message:Test>true</message:Test><message:Prepared>2019-11-26T00:17:08</message:Prepared><message:Sender id="NOT_CONFIGURED" /><message:Structure structureID="StatCan_Data_Structure_17100005_1_0" dimensionAtObservation="TIME_PERIOD"><common:Structure><Ref agencyID="StatCan" id="Data_Structure_17100005" version="1.0" /></common:Structure></message:Structure><message:DataSetAction>Information</message:DataSetAction></message:Header><message:DataSet action="Information" structureRef="StatCan_Data_Structure_17100005_1_0"><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="1" /><generic:Value id="Sex" value="3" /><generic:Value id="Age_group" value="1" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000011124" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="466670" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2012" /><generic:ObsValue value="17504322" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2013" /><generic:ObsValue value="17681789" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2014" /><generic:ObsValue value="17855738" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="17990107" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="18192991" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2017" /><generic:ObsValue value="18408053" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2018" /><generic:ObsValue value="18655084" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2019" /><generic:ObsValue value="18911177" /></generic:Obs></generic:Series><generic:Series><generic:SeriesKey><generic:Value id="Geography" value="1" /><generic:Value id="Sex" value="2" /><generic:Value id="Age_group" value="1" /></generic:SeriesKey><generic:Attributes><generic:Value id="UOM" value="249" /><generic:Value id="DGUID" value="2016A000011124" /><generic:Value id="SCALAR_FACTOR" value="0" /><generic:Value id="VECTOR_ID" value="466669" /><generic:Value id="NB_DECIMAL" value="0" /></generic:Attributes><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2012" /><generic:ObsValue value="17209900" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2013" /><generic:ObsValue value="17401165" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2014" /><generic:ObsValue value="17581697" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2015" /><generic:ObsValue value="17712801" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2016" /><generic:ObsValue value="17916496" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2017" /><generic:ObsValue value="18135268" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2018" /><generic:ObsValue value="18402681" /></generic:Obs><generic:Obs><generic:ObsDimension id="TIME_PERIOD" value="2019" /><generic:ObsValue value="18678085" /></generic:Obs></generic:Series></message:DataSet></message:GenericData>
SDMX-ML 2.1 Structure Specific Data
<?xml version="1.0" encoding="utf-8"?><!--NSI Web Service v7.8.0.0--><message:StructureSpecificData xmlns:ss="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/structurespecific" xmlns:footer="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message/footer" xmlns:ns1="urn:sdmx:org.sdmx.infomodel.datastructure.DataStructure=StatCan:Data_Structure_17100005(1.0):ObsLevelDim:TIME_PERIOD" xmlns:message="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message" xmlns:common="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xml="http://www.w3.org/XML/1998/namespace"><message:Header><message:ID>IREF36867abba54c43c29ec589d4027bf84d</message:ID><message:Test>true</message:Test><message:Prepared>2019-11-26T00:17:07</message:Prepared><message:Sender id="NOT_CONFIGURED" /><message:Structure structureID="StatCan_Data_Structure_17100005_1_0" namespace="urn:sdmx:org.sdmx.infomodel.datastructure.DataStructure=StatCan:Data_Structure_17100005(1.0):ObsLevelDim:TIME_PERIOD" dimensionAtObservation="TIME_PERIOD"><common:Structure><Ref agencyID="StatCan" id="Data_Structure_17100005" version="1.0" /></common:Structure></message:Structure><message:DataSetAction>Information</message:DataSetAction></message:Header><message:DataSet action="Information" ss:dataScope="DataStructure" xsi:type="ns1:DataSetType" ss:structureRef="StatCan_Data_Structure_17100005_1_0"><Series Geography="1" Sex="3" Age_group="1" UOM="249" DGUID="2016A000011124" SCALAR_FACTOR="0" VECTOR_ID="466670" NB_DECIMAL="0"><Obs TIME_PERIOD="2012" OBS_VALUE="17504322" /><Obs TIME_PERIOD="2013" OBS_VALUE="17681789" /><Obs TIME_PERIOD="2014" OBS_VALUE="17855738" /><Obs TIME_PERIOD="2015" OBS_VALUE="17990107" /><Obs TIME_PERIOD="2016" OBS_VALUE="18192991" /><Obs TIME_PERIOD="2017" OBS_VALUE="18408053" /><Obs TIME_PERIOD="2018" OBS_VALUE="18655084" /><Obs TIME_PERIOD="2019" OBS_VALUE="18911177" /></Series><Series Geography="1" Sex="2" Age_group="1" UOM="249" DGUID="2016A000011124" SCALAR_FACTOR="0" VECTOR_ID="466669" NB_DECIMAL="0"><Obs TIME_PERIOD="2012" OBS_VALUE="17209900" /><Obs TIME_PERIOD="2013" OBS_VALUE="17401165" /><Obs TIME_PERIOD="2014" OBS_VALUE="17581697" /><Obs TIME_PERIOD="2015" OBS_VALUE="17712801" /><Obs TIME_PERIOD="2016" OBS_VALUE="17916496" /><Obs TIME_PERIOD="2017" OBS_VALUE="18135268" /><Obs TIME_PERIOD="2018" OBS_VALUE="18402681" /><Obs TIME_PERIOD="2019" OBS_VALUE="18678085" /></Series></message:DataSet></message:StructureSpecificData>
SDMX-JSON
{"header":{"id":"IREF70e5ea2ecc1c47fba2695be637395233","prepared":"2019-11-26T00:17:10","test":true,"sender":{"id":"NOT_CONFIGURED","name":"unknown"}},"dataSets":[{"action":"Information","annotations":[],"series":{"0:0:0":{"attributes":[0,0,0,0,0,null],"annotations":[],"observations":{"0":[17504322],"1":[17681789],"2":[17855738],"3":[17990107],"4":[18192991],"5":[18408053],"6":[18655084],"7":[18911177]}},"0:1:0":{"attributes":[0,0,0,1,0,null],"annotations":[],"observations":{"0":[17209900],"1":[17401165],"2":[17581697],"3":[17712801],"4":[17916496],"5":[18135268],"6":[18402681],"7":[18678085]}}}}],"structure":{"name":"Population estimates on July 1st, by age and sex","description":"","dimensions":{"dataset":[],"series":[{"id":"Geography","name":"Geography","keyPosition":0,"role":"Geography","values":[{"id":"1","name":"Canada"}]},{"id":"Sex","name":"Sex","keyPosition":1,"role":"Sex","values":[{"id":"3","name":"Females"},{"id":"2","name":"Males"}]},{"id":"Age_group","name":"Age group","keyPosition":2,"role":"Age_group","values":[{"id":"1","name":"All ages"}]}],"observation":[{"id":"TIME_PERIOD","name":"Time","keyPosition":3,"role":"TIME_PERIOD","values":[{"start":"2012-01-01T00:00:00","end":"2012-12-31T23:59:59","id":"2012","name":"2012"},{"start":"2013-01-01T00:00:00","end":"2013-12-31T23:59:59","id":"2013","name":"2013"},{"start":"2014-01-01T00:00:00","end":"2014-12-31T23:59:59","id":"2014","name":"2014"},{"start":"2015-01-01T00:00:00","end":"2015-12-31T23:59:59","id":"2015","name":"2015"},{"start":"2016-01-01T00:00:00","end":"2016-12-31T23:59:59","id":"2016","name":"2016"},{"start":"2017-01-01T00:00:00","end":"2017-12-31T23:59:59","id":"2017","name":"2017"},{"start":"2018-01-01T00:00:00","end":"2018-12-31T23:59:59","id":"2018","name":"2018"},{"start":"2019-01-01T00:00:00","end":"2019-12-31T23:59:59","id":"2019","name":"2019"}]}]},"attributes":{"dataSet":[],"series":[{"id":"UOM","name":"Unit of measure","role":"UOM","values":[{"id":"249","name":"Persons"}]},{"id":"DGUID","name":"DGUID","role":"DGUID","values":[{"id":"2016A000011124","name":"2016A000011124"}]},{"id":"SCALAR_FACTOR","name":"Scalar Factor","role":"SCALAR_FACTOR","values":[{"id":"0","name":"units"}]},{"id":"VECTOR_ID","name":"Vector ID","role":"VECTOR_ID","values":[{"id":"466670","name":"466670"},{"id":"466669","name":"466669"}]},{"id":"NB_DECIMAL","name":"Number of decimal","role":"NB_DECIMAL","values":[{"id":"0","name":"0"}]},{"id":"TERMINATED","name":"Terminated","role":"TERMINATED","values":[]}],"observation":[{"id":"SYMBOL","name":"Symbol","role":"SYMBOL","values":[]},{"id":"STATUS_CAN","name":"Status","role":"STATUS_CAN","values":[]},{"id":"SECURITY_LEVEL","name":"Security Level","role":"SECURITY_LEVEL","values":[]}]},"annotations":[]}}

SDMX Metadata (structure) Web Service

5. Retrieve the latest version in production of the DSD with id 17100005 data structure. Table 17100005 is presented in full details in appendix 1.

https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/structure/Data_Structure_17100005

Results

SDMX-ML Structure format
<?xml version="1.0" encoding="utf-8"?>
<!--NSI Web Service v7.8.0.0-->
<message:Structure xmlns:message="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message" xmlns:structure="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/structure" xmlns:common="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common">
  <message:Header>
    <message:ID>IDREF2</message:ID>
    <message:Test>false</message:Test>
    <message:Prepared>2019-11-28T00:14:57.0026038+00:00</message:Prepared>
    <message:Sender id="Unknown" />
    <message:Receiver id="Unknown" />
  </message:Header>
  <message:Structures>
    <structure:Codelists>
      <structure:Codelist id="CL_17100005_Age_group" urn="urn:sdmx:org.sdmx.infomodel.codelist.Codelist=StatCan:CL_17100005_Age_group(1.0)" agencyID="StatCan" version="1.0" isFinal="false">
        <common:Name xml:lang="en">Age group</common:Name>
        <structure:Code id="1" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).1">
          <common:Name xml:lang="en">All ages</common:Name>
          <common:Name xml:lang="fr">Tous âges</common:Name>
        </structure:Code>
        <structure:Code id="7" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).7">
          <common:Name xml:lang="en">0 to 4 years</common:Name>
          <common:Name xml:lang="fr">0 à 4 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="2" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).2">
          <common:Name xml:lang="en">0 years</common:Name>
          <common:Name xml:lang="fr">0 an</common:Name>
          <structure:Parent>
            <Ref id="7" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="3" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).3">
          <common:Name xml:lang="en">1 year</common:Name>
          <common:Name xml:lang="fr">1 an</common:Name>
          <structure:Parent>
            <Ref id="7" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="4" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).4">
          <common:Name xml:lang="en">2 years</common:Name>
          <common:Name xml:lang="fr">2 ans</common:Name>
          <structure:Parent>
            <Ref id="7" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="5" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).5">
          <common:Name xml:lang="en">3 years</common:Name>
          <common:Name xml:lang="fr">3 ans</common:Name>
          <structure:Parent>
            <Ref id="7" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="6" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).6">
          <common:Name xml:lang="en">4 years</common:Name>
          <common:Name xml:lang="fr">4 ans</common:Name>
          <structure:Parent>
            <Ref id="7" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="13" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).13">
          <common:Name xml:lang="en">5 to 9 years</common:Name>
          <common:Name xml:lang="fr">5 à 9 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="8" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).8">
          <common:Name xml:lang="en">5 years</common:Name>
          <common:Name xml:lang="fr">5 ans</common:Name>
          <structure:Parent>
            <Ref id="13" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="9" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).9">
          <common:Name xml:lang="en">6 years</common:Name>
          <common:Name xml:lang="fr">6 ans</common:Name>
          <structure:Parent>
            <Ref id="13" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="10" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).10">
          <common:Name xml:lang="en">7 years</common:Name>
          <common:Name xml:lang="fr">7 ans</common:Name>
          <structure:Parent>
            <Ref id="13" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="11" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).11">
          <common:Name xml:lang="en">8 years</common:Name>
          <common:Name xml:lang="fr">8 ans</common:Name>
          <structure:Parent>
            <Ref id="13" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="12" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).12">
          <common:Name xml:lang="en">9 years</common:Name>
          <common:Name xml:lang="fr">9 ans</common:Name>
          <structure:Parent>
            <Ref id="13" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="19" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).19">
          <common:Name xml:lang="en">10 to 14 years</common:Name>
          <common:Name xml:lang="fr">10 à 14 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="14" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).14">
          <common:Name xml:lang="en">10 years</common:Name>
          <common:Name xml:lang="fr">10 ans</common:Name>
          <structure:Parent>
            <Ref id="19" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="15" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).15">
          <common:Name xml:lang="en">11 years</common:Name>
          <common:Name xml:lang="fr">11 ans</common:Name>
          <structure:Parent>
            <Ref id="19" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="16" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).16">
          <common:Name xml:lang="en">12 years</common:Name>
          <common:Name xml:lang="fr">12 ans</common:Name>
          <structure:Parent>
            <Ref id="19" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="17" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).17">
          <common:Name xml:lang="en">13 years</common:Name>
          <common:Name xml:lang="fr">13 ans</common:Name>
          <structure:Parent>
            <Ref id="19" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="18" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).18">
          <common:Name xml:lang="en">14 years</common:Name>
          <common:Name xml:lang="fr">14 ans</common:Name>
          <structure:Parent>
            <Ref id="19" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="25" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).25">
          <common:Name xml:lang="en">15 to 19 years</common:Name>
          <common:Name xml:lang="fr">15 à 19 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="20" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).20">
          <common:Name xml:lang="en">15 years</common:Name>
          <common:Name xml:lang="fr">15 ans</common:Name>
          <structure:Parent>
            <Ref id="25" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="21" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).21">
          <common:Name xml:lang="en">16 years</common:Name>
          <common:Name xml:lang="fr">16 ans</common:Name>
          <structure:Parent>
            <Ref id="25" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="22" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).22">
          <common:Name xml:lang="en">17 years</common:Name>
          <common:Name xml:lang="fr">17 ans</common:Name>
          <structure:Parent>
            <Ref id="25" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="23" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).23">
          <common:Name xml:lang="en">18 years</common:Name>
          <common:Name xml:lang="fr">18 ans</common:Name>
          <structure:Parent>
            <Ref id="25" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="24" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).24">
          <common:Name xml:lang="en">19 years</common:Name>
          <common:Name xml:lang="fr">19 ans</common:Name>
          <structure:Parent>
            <Ref id="25" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="31" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).31">
          <common:Name xml:lang="en">20 to 24 years</common:Name>
          <common:Name xml:lang="fr">20 à 24 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="26" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).26">
          <common:Name xml:lang="en">20 years</common:Name>
          <common:Name xml:lang="fr">20 ans</common:Name>
          <structure:Parent>
            <Ref id="31" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="27" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).27">
          <common:Name xml:lang="en">21 years</common:Name>
          <common:Name xml:lang="fr">21 ans</common:Name>
          <structure:Parent>
            <Ref id="31" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="28" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).28">
          <common:Name xml:lang="en">22 years</common:Name>
          <common:Name xml:lang="fr">22 ans</common:Name>
          <structure:Parent>
            <Ref id="31" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="29" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).29">
          <common:Name xml:lang="en">23 years</common:Name>
          <common:Name xml:lang="fr">23 ans</common:Name>
          <structure:Parent>
            <Ref id="31" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="30" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).30">
          <common:Name xml:lang="en">24 years</common:Name>
          <common:Name xml:lang="fr">24 ans</common:Name>
          <structure:Parent>
            <Ref id="31" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="37" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).37">
          <common:Name xml:lang="en">25 to 29 years</common:Name>
          <common:Name xml:lang="fr">25 à 29 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="32" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).32">
          <common:Name xml:lang="en">25 years</common:Name>
          <common:Name xml:lang="fr">25 ans</common:Name>
          <structure:Parent>
            <Ref id="37" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="33" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).33">
          <common:Name xml:lang="en">26 years</common:Name>
          <common:Name xml:lang="fr">26 ans</common:Name>
          <structure:Parent>
            <Ref id="37" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="34" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).34">
          <common:Name xml:lang="en">27 years</common:Name>
          <common:Name xml:lang="fr">27 ans</common:Name>
          <structure:Parent>
            <Ref id="37" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="35" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).35">
          <common:Name xml:lang="en">28 years</common:Name>
          <common:Name xml:lang="fr">28 ans</common:Name>
          <structure:Parent>
            <Ref id="37" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="36" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).36">
          <common:Name xml:lang="en">29 years</common:Name>
          <common:Name xml:lang="fr">29 ans</common:Name>
          <structure:Parent>
            <Ref id="37" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="43" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).43">
          <common:Name xml:lang="en">30 to 34 years</common:Name>
          <common:Name xml:lang="fr">30 à 34 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="38" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).38">
          <common:Name xml:lang="en">30 years</common:Name>
          <common:Name xml:lang="fr">30 ans</common:Name>
          <structure:Parent>
            <Ref id="43" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="39" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).39">
          <common:Name xml:lang="en">31 years</common:Name>
          <common:Name xml:lang="fr">31 ans</common:Name>
          <structure:Parent>
            <Ref id="43" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="40" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).40">
          <common:Name xml:lang="en">32 years</common:Name>
          <common:Name xml:lang="fr">32 ans</common:Name>
          <structure:Parent>
            <Ref id="43" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="41" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).41">
          <common:Name xml:lang="en">33 years</common:Name>
          <common:Name xml:lang="fr">33 ans</common:Name>
          <structure:Parent>
            <Ref id="43" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="42" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).42">
          <common:Name xml:lang="en">34 years</common:Name>
          <common:Name xml:lang="fr">34 ans</common:Name>
          <structure:Parent>
            <Ref id="43" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="49" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).49">
          <common:Name xml:lang="en">35 to 39 years</common:Name>
          <common:Name xml:lang="fr">35 à 39 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="44" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).44">
          <common:Name xml:lang="en">35 years</common:Name>
          <common:Name xml:lang="fr">35 ans</common:Name>
          <structure:Parent>
            <Ref id="49" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="45" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).45">
          <common:Name xml:lang="en">36 years</common:Name>
          <common:Name xml:lang="fr">36 ans</common:Name>
          <structure:Parent>
            <Ref id="49" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="46" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).46">
          <common:Name xml:lang="en">37 years</common:Name>
          <common:Name xml:lang="fr">37 ans</common:Name>
          <structure:Parent>
            <Ref id="49" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="47" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).47">
          <common:Name xml:lang="en">38 years</common:Name>
          <common:Name xml:lang="fr">38 ans</common:Name>
          <structure:Parent>
            <Ref id="49" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="48" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).48">
          <common:Name xml:lang="en">39 years</common:Name>
          <common:Name xml:lang="fr">39 ans</common:Name>
          <structure:Parent>
            <Ref id="49" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="55" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).55">
          <common:Name xml:lang="en">40 to 44 years</common:Name>
          <common:Name xml:lang="fr">40 à 44 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="50" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).50">
          <common:Name xml:lang="en">40 years</common:Name>
          <common:Name xml:lang="fr">40 ans</common:Name>
          <structure:Parent>
            <Ref id="55" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="51" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).51">
          <common:Name xml:lang="en">41 years</common:Name>
          <common:Name xml:lang="fr">41 ans</common:Name>
          <structure:Parent>
            <Ref id="55" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="52" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).52">
          <common:Name xml:lang="en">42 years</common:Name>
          <common:Name xml:lang="fr">42 ans</common:Name>
          <structure:Parent>
            <Ref id="55" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="53" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).53">
          <common:Name xml:lang="en">43 years</common:Name>
          <common:Name xml:lang="fr">43 ans</common:Name>
          <structure:Parent>
            <Ref id="55" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="54" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).54">
          <common:Name xml:lang="en">44 years</common:Name>
          <common:Name xml:lang="fr">44 ans</common:Name>
          <structure:Parent>
            <Ref id="55" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="61" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).61">
          <common:Name xml:lang="en">45 to 49 years</common:Name>
          <common:Name xml:lang="fr">45 à 49 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="56" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).56">
          <common:Name xml:lang="en">45 years</common:Name>
          <common:Name xml:lang="fr">45 ans</common:Name>
          <structure:Parent>
            <Ref id="61" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="57" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).57">
          <common:Name xml:lang="en">46 years</common:Name>
          <common:Name xml:lang="fr">46 ans</common:Name>
          <structure:Parent>
            <Ref id="61" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="58" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).58">
          <common:Name xml:lang="en">47 years</common:Name>
          <common:Name xml:lang="fr">47 ans</common:Name>
          <structure:Parent>
            <Ref id="61" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="59" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).59">
          <common:Name xml:lang="en">48 years</common:Name>
          <common:Name xml:lang="fr">48 ans</common:Name>
          <structure:Parent>
            <Ref id="61" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="60" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).60">
          <common:Name xml:lang="en">49 years</common:Name>
          <common:Name xml:lang="fr">49 ans</common:Name>
          <structure:Parent>
            <Ref id="61" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="67" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).67">
          <common:Name xml:lang="en">50 to 54 years</common:Name>
          <common:Name xml:lang="fr">50 à 54 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="62" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).62">
          <common:Name xml:lang="en">50 years</common:Name>
          <common:Name xml:lang="fr">50 ans</common:Name>
          <structure:Parent>
            <Ref id="67" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="63" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).63">
          <common:Name xml:lang="en">51 years</common:Name>
          <common:Name xml:lang="fr">51 ans</common:Name>
          <structure:Parent>
            <Ref id="67" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="64" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).64">
          <common:Name xml:lang="en">52 years</common:Name>
          <common:Name xml:lang="fr">52 ans</common:Name>
          <structure:Parent>
            <Ref id="67" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="65" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).65">
          <common:Name xml:lang="en">53 years</common:Name>
          <common:Name xml:lang="fr">53 ans</common:Name>
          <structure:Parent>
            <Ref id="67" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="66" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).66">
          <common:Name xml:lang="en">54 years</common:Name>
          <common:Name xml:lang="fr">54 ans</common:Name>
          <structure:Parent>
            <Ref id="67" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="73" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).73">
          <common:Name xml:lang="en">55 to 59 years</common:Name>
          <common:Name xml:lang="fr">55 à 59 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="68" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).68">
          <common:Name xml:lang="en">55 years</common:Name>
          <common:Name xml:lang="fr">55 ans</common:Name>
          <structure:Parent>
            <Ref id="73" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="69" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).69">
          <common:Name xml:lang="en">56 years</common:Name>
          <common:Name xml:lang="fr">56 ans</common:Name>
          <structure:Parent>
            <Ref id="73" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="70" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).70">
          <common:Name xml:lang="en">57 years</common:Name>
          <common:Name xml:lang="fr">57 ans</common:Name>
          <structure:Parent>
            <Ref id="73" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="71" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).71">
          <common:Name xml:lang="en">58 years</common:Name>
          <common:Name xml:lang="fr">58 ans</common:Name>
          <structure:Parent>
            <Ref id="73" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="72" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).72">
          <common:Name xml:lang="en">59 years</common:Name>
          <common:Name xml:lang="fr">59 ans</common:Name>
          <structure:Parent>
            <Ref id="73" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="79" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).79">
          <common:Name xml:lang="en">60 to 64 years</common:Name>
          <common:Name xml:lang="fr">60 à 64 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="74" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).74">
          <common:Name xml:lang="en">60 years</common:Name>
          <common:Name xml:lang="fr">60 ans</common:Name>
          <structure:Parent>
            <Ref id="79" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="75" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).75">
          <common:Name xml:lang="en">61 years</common:Name>
          <common:Name xml:lang="fr">61 ans</common:Name>
          <structure:Parent>
            <Ref id="79" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="76" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).76">
          <common:Name xml:lang="en">62 years</common:Name>
          <common:Name xml:lang="fr">62 ans</common:Name>
          <structure:Parent>
            <Ref id="79" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="77" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).77">
          <common:Name xml:lang="en">63 years</common:Name>
          <common:Name xml:lang="fr">63 ans</common:Name>
          <structure:Parent>
            <Ref id="79" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="78" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).78">
          <common:Name xml:lang="en">64 years</common:Name>
          <common:Name xml:lang="fr">64 ans</common:Name>
          <structure:Parent>
            <Ref id="79" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="85" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).85">
          <common:Name xml:lang="en">65 to 69 years</common:Name>
          <common:Name xml:lang="fr">65 à 69 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="80" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).80">
          <common:Name xml:lang="en">65 years</common:Name>
          <common:Name xml:lang="fr">65 ans</common:Name>
          <structure:Parent>
            <Ref id="85" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="81" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).81">
          <common:Name xml:lang="en">66 years</common:Name>
          <common:Name xml:lang="fr">66 ans</common:Name>
          <structure:Parent>
            <Ref id="85" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="82" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).82">
          <common:Name xml:lang="en">67 years</common:Name>
          <common:Name xml:lang="fr">67 ans</common:Name>
          <structure:Parent>
            <Ref id="85" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="83" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).83">
          <common:Name xml:lang="en">68 years</common:Name>
          <common:Name xml:lang="fr">68 ans</common:Name>
          <structure:Parent>
            <Ref id="85" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="84" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).84">
          <common:Name xml:lang="en">69 years</common:Name>
          <common:Name xml:lang="fr">69 ans</common:Name>
          <structure:Parent>
            <Ref id="85" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="86" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).86">
          <common:Name xml:lang="en">70 to 74 years</common:Name>
          <common:Name xml:lang="fr">70 à 74 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="87" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).87">
          <common:Name xml:lang="en">75 to 79 years</common:Name>
          <common:Name xml:lang="fr">75 à 79 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="88" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).88">
          <common:Name xml:lang="en">80 to 84 years</common:Name>
          <common:Name xml:lang="fr">80 à 84 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="89" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).89">
          <common:Name xml:lang="en">85 to 89 years</common:Name>
          <common:Name xml:lang="fr">85 à 89 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="90" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).90">
          <common:Name xml:lang="en">90 years and over</common:Name>
          <common:Name xml:lang="fr">90 ans et plus</common:Name>
        </structure:Code>
        <structure:Code id="91" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).91">
          <common:Name xml:lang="en">0 to 14 years</common:Name>
          <common:Name xml:lang="fr">0 à 14 ans</common:Name>
        </structure:Code>
        <structure:Code id="92" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).92">
          <common:Name xml:lang="en">0 to 15 years</common:Name>
          <common:Name xml:lang="fr">0 à 15 ans</common:Name>
        </structure:Code>
        <structure:Code id="93" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).93">
          <common:Name xml:lang="en">0 to 16 years</common:Name>
          <common:Name xml:lang="fr">0 à 16 ans</common:Name>
        </structure:Code>
        <structure:Code id="94" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).94">
          <common:Name xml:lang="en">0 to 17 years</common:Name>
          <common:Name xml:lang="fr">0 à 17 ans</common:Name>
        </structure:Code>
        <structure:Code id="95" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).95">
          <common:Name xml:lang="en">15 to 49 years</common:Name>
          <common:Name xml:lang="fr">15 à 49 ans</common:Name>
        </structure:Code>
        <structure:Code id="96" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).96">
          <common:Name xml:lang="en">15 to 64 years</common:Name>
          <common:Name xml:lang="fr">15 à 64 ans</common:Name>
        </structure:Code>
        <structure:Code id="97" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).97">
          <common:Name xml:lang="en">16 to 64 years</common:Name>
          <common:Name xml:lang="fr">16 à 64 ans</common:Name>
        </structure:Code>
        <structure:Code id="98" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).98">
          <common:Name xml:lang="en">17 to 64 years</common:Name>
          <common:Name xml:lang="fr">17 à 64 ans</common:Name>
        </structure:Code>
        <structure:Code id="101" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).101">
          <common:Name xml:lang="en">18 years and over</common:Name>
          <common:Name xml:lang="fr">18 ans et plus</common:Name>
        </structure:Code>
        <structure:Code id="100" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).100">
          <common:Name xml:lang="en">18 to 64 years</common:Name>
          <common:Name xml:lang="fr">18 à 64 ans</common:Name>
          <structure:Parent>
            <Ref id="101" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="99" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).99">
          <common:Name xml:lang="en">18 to 24 years</common:Name>
          <common:Name xml:lang="fr">18 à 24 ans</common:Name>
          <structure:Parent>
            <Ref id="100" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="102" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).102">
          <common:Name xml:lang="en">25 to 44 years</common:Name>
          <common:Name xml:lang="fr">25 à 44 ans</common:Name>
          <structure:Parent>
            <Ref id="100" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="103" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).103">
          <common:Name xml:lang="en">45 to 64 years</common:Name>
          <common:Name xml:lang="fr">45 à 64 ans</common:Name>
          <structure:Parent>
            <Ref id="100" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="104" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).104">
          <common:Name xml:lang="en">65 years and over</common:Name>
          <common:Name xml:lang="fr">65 ans et plus</common:Name>
          <structure:Parent>
            <Ref id="101" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="105" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).105">
          <common:Name xml:lang="en">Median age</common:Name>
          <common:Name xml:lang="fr">Âge médian</common:Name>
        </structure:Code>
        <structure:Code id="106" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).106">
          <common:Name xml:lang="en">70 years</common:Name>
          <common:Name xml:lang="fr">70 ans</common:Name>
          <structure:Parent>
            <Ref id="86" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="107" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).107">
          <common:Name xml:lang="en">71 years</common:Name>
          <common:Name xml:lang="fr">71 ans</common:Name>
          <structure:Parent>
            <Ref id="86" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="108" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).108">
          <common:Name xml:lang="en">72 years</common:Name>
          <common:Name xml:lang="fr">72 ans</common:Name>
          <structure:Parent>
            <Ref id="86" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="109" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).109">
          <common:Name xml:lang="en">73 years</common:Name>
          <common:Name xml:lang="fr">73 ans</common:Name>
          <structure:Parent>
            <Ref id="86" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="110" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).110">
          <common:Name xml:lang="en">74 years</common:Name>
          <common:Name xml:lang="fr">74 ans</common:Name>
          <structure:Parent>
            <Ref id="86" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="111" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).111">
          <common:Name xml:lang="en">75 years</common:Name>
          <common:Name xml:lang="fr">75 ans</common:Name>
          <structure:Parent>
            <Ref id="87" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="112" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).112">
          <common:Name xml:lang="en">76 years</common:Name>
          <common:Name xml:lang="fr">76 ans</common:Name>
          <structure:Parent>
            <Ref id="87" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="113" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).113">
          <common:Name xml:lang="en">77 years</common:Name>
          <common:Name xml:lang="fr">77 ans</common:Name>
          <structure:Parent>
            <Ref id="87" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="114" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).114">
          <common:Name xml:lang="en">78 years</common:Name>
          <common:Name xml:lang="fr">78 ans</common:Name>
          <structure:Parent>
            <Ref id="87" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="115" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).115">
          <common:Name xml:lang="en">79 years</common:Name>
          <common:Name xml:lang="fr">79 ans</common:Name>
          <structure:Parent>
            <Ref id="87" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="116" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).116">
          <common:Name xml:lang="en">80 years</common:Name>
          <common:Name xml:lang="fr">80 ans</common:Name>
          <structure:Parent>
            <Ref id="88" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="117" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).117">
          <common:Name xml:lang="en">81 years</common:Name>
          <common:Name xml:lang="fr">81 ans</common:Name>
          <structure:Parent>
            <Ref id="88" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="118" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).118">
          <common:Name xml:lang="en">82 years</common:Name>
          <common:Name xml:lang="fr">82 ans</common:Name>
          <structure:Parent>
            <Ref id="88" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="119" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).119">
          <common:Name xml:lang="en">83 years</common:Name>
          <common:Name xml:lang="fr">83 ans</common:Name>
          <structure:Parent>
            <Ref id="88" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="120" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).120">
          <common:Name xml:lang="en">84 years</common:Name>
          <common:Name xml:lang="fr">84 ans</common:Name>
          <structure:Parent>
            <Ref id="88" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="121" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).121">
          <common:Name xml:lang="en">85 years</common:Name>
          <common:Name xml:lang="fr">85 ans</common:Name>
          <structure:Parent>
            <Ref id="89" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="122" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).122">
          <common:Name xml:lang="en">86 years</common:Name>
          <common:Name xml:lang="fr">86 ans</common:Name>
          <structure:Parent>
            <Ref id="89" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="123" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).123">
          <common:Name xml:lang="en">87 years</common:Name>
          <common:Name xml:lang="fr">87 ans</common:Name>
          <structure:Parent>
            <Ref id="89" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="124" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).124">
          <common:Name xml:lang="en">88 years</common:Name>
          <common:Name xml:lang="fr">88 ans</common:Name>
          <structure:Parent>
            <Ref id="89" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="125" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).125">
          <common:Name xml:lang="en">89 years</common:Name>
          <common:Name xml:lang="fr">89 ans</common:Name>
          <structure:Parent>
            <Ref id="89" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="126" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).126">
          <common:Name xml:lang="en">90 to 94 years</common:Name>
          <common:Name xml:lang="fr">90 à 94 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="127" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).127">
          <common:Name xml:lang="en">90 years</common:Name>
          <common:Name xml:lang="fr">90 ans</common:Name>
          <structure:Parent>
            <Ref id="126" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="128" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).128">
          <common:Name xml:lang="en">91 years</common:Name>
          <common:Name xml:lang="fr">91 ans</common:Name>
          <structure:Parent>


            <Ref id="126" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="129" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).129">
          <common:Name xml:lang="en">92 years</common:Name>
          <common:Name xml:lang="fr">92 ans</common:Name>
          <structure:Parent>
            <Ref id="126" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="130" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).130">
          <common:Name xml:lang="en">93 years</common:Name>
          <common:Name xml:lang="fr">93 ans</common:Name>
          <structure:Parent>
            <Ref id="126" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="131" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).131">
          <common:Name xml:lang="en">94 years</common:Name>
          <common:Name xml:lang="fr">94 ans</common:Name>
          <structure:Parent>
            <Ref id="126" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="132" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).132">
          <common:Name xml:lang="en">95 to 99 years</common:Name>
          <common:Name xml:lang="fr">95 à 99 ans</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="133" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).133">
          <common:Name xml:lang="en">95 years</common:Name>
          <common:Name xml:lang="fr">95 ans</common:Name>
          <structure:Parent>
            <Ref id="132" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="134" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).134">
          <common:Name xml:lang="en">96 years</common:Name>
          <common:Name xml:lang="fr">96 ans</common:Name>
          <structure:Parent>
            <Ref id="132" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="135" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).135">
          <common:Name xml:lang="en">97 years</common:Name>
          <common:Name xml:lang="fr">97 ans</common:Name>
          <structure:Parent>
            <Ref id="132" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="136" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).136">
          <common:Name xml:lang="en">98 years</common:Name>
          <common:Name xml:lang="fr">98 ans</common:Name>
          <structure:Parent>
            <Ref id="132" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="137" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).137">
          <common:Name xml:lang="en">99 years</common:Name>
          <common:Name xml:lang="fr">99 ans</common:Name>
          <structure:Parent>
            <Ref id="132" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="138" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Age_group(1.0).138">
          <common:Name xml:lang="en">100 years and over</common:Name>
          <common:Name xml:lang="fr">100 ans et plus</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
      </structure:Codelist>
      <structure:Codelist id="CL_17100005_DGUID" urn="urn:sdmx:org.sdmx.infomodel.codelist.Codelist=StatCan:CL_17100005_DGUID(1.0)" agencyID="StatCan" version="1.0" isFinal="false">
        <common:Name xml:lang="en">DGUID</common:Name>
        <structure:Code id="2016A000011124" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_DGUID(1.0).2016A000011124">
          <common:Name xml:lang="en">2016A000011124</common:Name>
        </structure:Code>
        <structure:Code id="2016A000210" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_DGUID(1.0).2016A000210">
          <common:Name xml:lang="en">2016A000210</common:Name>
        </structure:Code>
        <structure:Code id="2016A000211" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_DGUID(1.0).2016A000211">
          <common:Name xml:lang="en">2016A000211</common:Name>
        </structure:Code>
        <structure:Code id="2016A000212" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_DGUID(1.0).2016A000212">
          <common:Name xml:lang="en">2016A000212</common:Name>
        </structure:Code>
        <structure:Code id="2016A000213" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_DGUID(1.0).2016A000213">
          <common:Name xml:lang="en">2016A000213</common:Name>
        </structure:Code>
        <structure:Code id="2016A000224" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_DGUID(1.0).2016A000224">
          <common:Name xml:lang="en">2016A000224</common:Name>
        </structure:Code>
        <structure:Code id="2016A000235" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_DGUID(1.0).2016A000235">
          <common:Name xml:lang="en">2016A000235</common:Name>
        </structure:Code>
        <structure:Code id="2016A000246" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_DGUID(1.0).2016A000246">
          <common:Name xml:lang="en">2016A000246</common:Name>
        </structure:Code>
        <structure:Code id="2016A000247" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_DGUID(1.0).2016A000247">
          <common:Name xml:lang="en">2016A000247</common:Name>
        </structure:Code>
        <structure:Code id="2016A000248" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_DGUID(1.0).2016A000248">
          <common:Name xml:lang="en">2016A000248</common:Name>
        </structure:Code>
        <structure:Code id="2016A000259" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_DGUID(1.0).2016A000259">
          <common:Name xml:lang="en">2016A000259</common:Name>
        </structure:Code>
        <structure:Code id="2016A000260" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_DGUID(1.0).2016A000260">
          <common:Name xml:lang="en">2016A000260</common:Name>
        </structure:Code>
        <structure:Code id="2016A000261" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_DGUID(1.0).2016A000261">
          <common:Name xml:lang="en">2016A000261</common:Name>
        </structure:Code>
        <structure:Code id="2016A000262" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_DGUID(1.0).2016A000262">
          <common:Name xml:lang="en">2016A000262</common:Name>
        </structure:Code>
      </structure:Codelist>
      <structure:Codelist id="CL_17100005_Geography" urn="urn:sdmx:org.sdmx.infomodel.codelist.Codelist=StatCan:CL_17100005_Geography(1.0)" agencyID="StatCan" version="1.0" isFinal="false">
        <common:Name xml:lang="en">Geography</common:Name>
        <structure:Code id="1" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Geography(1.0).1">
          <common:Annotations>
            <common:Annotation>
              <common:AnnotationType>FootnoteId</common:AnnotationType>
            </common:Annotation>
            <common:Annotation>
              <common:AnnotationType>Footnote_4</common:AnnotationType>
            </common:Annotation>
          </common:Annotations>
          <common:Name xml:lang="en">Canada</common:Name>
          <common:Name xml:lang="fr">Canada</common:Name>
        </structure:Code>
        <structure:Code id="2" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Geography(1.0).2">
          <common:Annotations>
            <common:Annotation>
              <common:AnnotationType>FootnoteId</common:AnnotationType>
            </common:Annotation>
            <common:Annotation>
              <common:AnnotationType>Footnote_4</common:AnnotationType>
            </common:Annotation>
          </common:Annotations>
          <common:Name xml:lang="en">Newfoundland and Labrador</common:Name>
          <common:Name xml:lang="fr">Terre-Neuve-et-Labrador</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="3" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Geography(1.0).3">
          <common:Annotations>
            <common:Annotation>
              <common:AnnotationType>FootnoteId</common:AnnotationType>
            </common:Annotation>
            <common:Annotation>
              <common:AnnotationType>Footnote_4</common:AnnotationType>
            </common:Annotation>
          </common:Annotations>
          <common:Name xml:lang="en">Prince Edward Island</common:Name>
          <common:Name xml:lang="fr">Île-du-Prince-Édouard</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="4" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Geography(1.0).4">
          <common:Annotations>
            <common:Annotation>
              <common:AnnotationType>FootnoteId</common:AnnotationType>
            </common:Annotation>
            <common:Annotation>
              <common:AnnotationType>Footnote_4</common:AnnotationType>
            </common:Annotation>
          </common:Annotations>
          <common:Name xml:lang="en">Nova Scotia</common:Name>
          <common:Name xml:lang="fr">Nouvelle-Écosse</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="5" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Geography(1.0).5">
          <common:Annotations>
            <common:Annotation>
              <common:AnnotationType>FootnoteId</common:AnnotationType>
            </common:Annotation>
            <common:Annotation>
              <common:AnnotationType>Footnote_4</common:AnnotationType>
            </common:Annotation>
          </common:Annotations>
          <common:Name xml:lang="en">New Brunswick</common:Name>
          <common:Name xml:lang="fr">Nouveau-Brunswick</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="6" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Geography(1.0).6">
          <common:Annotations>
            <common:Annotation>
              <common:AnnotationType>FootnoteId</common:AnnotationType>
            </common:Annotation>
            <common:Annotation>
              <common:AnnotationType>Footnote_4</common:AnnotationType>
            </common:Annotation>
          </common:Annotations>
          <common:Name xml:lang="en">Quebec</common:Name>
          <common:Name xml:lang="fr">Québec</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="7" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Geography(1.0).7">
          <common:Annotations>
            <common:Annotation>
              <common:AnnotationType>FootnoteId</common:AnnotationType>
            </common:Annotation>
            <common:Annotation>
              <common:AnnotationType>Footnote_4</common:AnnotationType>
            </common:Annotation>
          </common:Annotations>
          <common:Name xml:lang="en">Ontario</common:Name>
          <common:Name xml:lang="fr">Ontario</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="8" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Geography(1.0).8">
          <common:Annotations>
            <common:Annotation>
              <common:AnnotationType>FootnoteId</common:AnnotationType>
            </common:Annotation>
            <common:Annotation>
              <common:AnnotationType>Footnote_4</common:AnnotationType>
            </common:Annotation>
          </common:Annotations>
          <common:Name xml:lang="en">Manitoba</common:Name>
          <common:Name xml:lang="fr">Manitoba</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="9" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Geography(1.0).9">
          <common:Annotations>
            <common:Annotation>
              <common:AnnotationType>FootnoteId</common:AnnotationType>
            </common:Annotation>
            <common:Annotation>
              <common:AnnotationType>Footnote_4</common:AnnotationType>
            </common:Annotation>
          </common:Annotations>
          <common:Name xml:lang="en">Saskatchewan</common:Name>
          <common:Name xml:lang="fr">Saskatchewan</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="10" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Geography(1.0).10">
          <common:Annotations>
            <common:Annotation>
              <common:AnnotationType>FootnoteId</common:AnnotationType>
            </common:Annotation>
            <common:Annotation>
              <common:AnnotationType>Footnote_4</common:AnnotationType>
            </common:Annotation>
          </common:Annotations>
          <common:Name xml:lang="en">Alberta</common:Name>
          <common:Name xml:lang="fr">Alberta</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="11" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Geography(1.0).11">
          <common:Annotations>
            <common:Annotation>
              <common:AnnotationType>FootnoteId</common:AnnotationType>
            </common:Annotation>
            <common:Annotation>
              <common:AnnotationType>Footnote_4</common:AnnotationType>
            </common:Annotation>
          </common:Annotations>
          <common:Name xml:lang="en">British Columbia</common:Name>
          <common:Name xml:lang="fr">Colombie-Britannique</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="12" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Geography(1.0).12">
          <common:Annotations>
            <common:Annotation>
              <common:AnnotationType>FootnoteId</common:AnnotationType>
            </common:Annotation>
            <common:Annotation>
              <common:AnnotationType>Footnote_4</common:AnnotationType>
            </common:Annotation>
          </common:Annotations>
          <common:Name xml:lang="en">Yukon</common:Name>
          <common:Name xml:lang="fr">Yukon</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="13" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Geography(1.0).13">
          <common:Annotations>
            <common:Annotation>
              <common:AnnotationTitle>Footnote_3</common:AnnotationTitle>
              <common:AnnotationType>FootnoteId</common:AnnotationType>
            </common:Annotation>
            <common:Annotation>
              <common:AnnotationType>Footnote_4</common:AnnotationType>
            </common:Annotation>
          </common:Annotations>
          <common:Name xml:lang="en">Northwest Territories including Nunavut</common:Name>
          <common:Name xml:lang="fr">Territoires du Nord-Ouest incluant Nunavut</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="14" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Geography(1.0).14">
          <common:Annotations>
            <common:Annotation>
              <common:AnnotationTitle>Footnote_4</common:AnnotationTitle>
              <common:AnnotationType>FootnoteId</common:AnnotationType>
            </common:Annotation>
            <common:Annotation>
              <common:AnnotationType>Footnote_4</common:AnnotationType>
            </common:Annotation>
          </common:Annotations>
          <common:Name xml:lang="en">Northwest Territories</common:Name>
          <common:Name xml:lang="fr">Territoires du Nord-Ouest</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="15" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Geography(1.0).15">
          <common:Annotations>
            <common:Annotation>
              <common:AnnotationTitle>Footnote_4</common:AnnotationTitle>
              <common:AnnotationType>FootnoteId</common:AnnotationType>
            </common:Annotation>
            <common:Annotation>
              <common:AnnotationType>Footnote_4</common:AnnotationType>
            </common:Annotation>
          </common:Annotations>
          <common:Name xml:lang="en">Nunavut</common:Name>
          <common:Name xml:lang="fr">Nunavut</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
      </structure:Codelist>
      <structure:Codelist id="CL_17100005_SCALAR_FACTOR" urn="urn:sdmx:org.sdmx.infomodel.codelist.Codelist=StatCan:CL_17100005_SCALAR_FACTOR(1.0)" agencyID="StatCan" version="1.0" isFinal="false">
        <common:Name xml:lang="en">Scalar Factor</common:Name>
        <structure:Code id="0" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_SCALAR_FACTOR(1.0).0">
          <common:Name xml:lang="en">units</common:Name>
          <common:Name xml:lang="fr">unités</common:Name>
        </structure:Code>
        <structure:Code id="1" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_SCALAR_FACTOR(1.0).1">
          <common:Name xml:lang="en">tens</common:Name>
          <common:Name xml:lang="fr">dizaines</common:Name>
        </structure:Code>
        <structure:Code id="2" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_SCALAR_FACTOR(1.0).2">
          <common:Name xml:lang="en">hundreds</common:Name>
          <common:Name xml:lang="fr">centaines</common:Name>
        </structure:Code>
        <structure:Code id="3" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_SCALAR_FACTOR(1.0).3">
          <common:Name xml:lang="en">thousands</common:Name>
          <common:Name xml:lang="fr">milliers</common:Name>
        </structure:Code>
        <structure:Code id="4" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_SCALAR_FACTOR(1.0).4">
          <common:Name xml:lang="en">tens of thousands</common:Name>
          <common:Name xml:lang="fr">dizaines de milliers</common:Name>
        </structure:Code>
        <structure:Code id="5" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_SCALAR_FACTOR(1.0).5">
          <common:Name xml:lang="en">hundreds of thousands</common:Name>
          <common:Name xml:lang="fr">centaines de milliers</common:Name>
        </structure:Code>
        <structure:Code id="6" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_SCALAR_FACTOR(1.0).6">
          <common:Name xml:lang="en">millions</common:Name>
          <common:Name xml:lang="fr">millions</common:Name>
        </structure:Code>
        <structure:Code id="7" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_SCALAR_FACTOR(1.0).7">
          <common:Name xml:lang="en">tens of millions</common:Name>
          <common:Name xml:lang="fr">dizaines de millions</common:Name>
        </structure:Code>
        <structure:Code id="8" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_SCALAR_FACTOR(1.0).8">
          <common:Name xml:lang="en">hundreds of millions</common:Name>
          <common:Name xml:lang="fr">centaines de millions</common:Name>
        </structure:Code>
        <structure:Code id="9" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_SCALAR_FACTOR(1.0).9">
          <common:Name xml:lang="en">billions</common:Name>
          <common:Name xml:lang="fr">milliards</common:Name>
        </structure:Code>
      </structure:Codelist>
      <structure:Codelist id="CL_17100005_SECURITY_LEVEL" urn="urn:sdmx:org.sdmx.infomodel.codelist.Codelist=StatCan:CL_17100005_SECURITY_LEVEL(1.0)" agencyID="StatCan" version="1.0" isFinal="false">
        <common:Name xml:lang="en">Security Level</common:Name>
        <structure:Code id="0" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_SECURITY_LEVEL(1.0).0">
          <common:Name xml:lang="en">0 = public</common:Name>
          <common:Name xml:lang="fr">0 = public</common:Name>
        </structure:Code>
        <structure:Code id="1" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_SECURITY_LEVEL(1.0).1">
          <common:Name xml:lang="en">x = suppressed to meet the confidentiality requirements of the Statistics Act</common:Name>
          <common:Name xml:lang="fr">x = confidentiel en vertu des dispositions de la Loi sur la statistique</common:Name>
        </structure:Code>
      </structure:Codelist>
      <structure:Codelist id="CL_17100005_STATUS_CAN" urn="urn:sdmx:org.sdmx.infomodel.codelist.Codelist=StatCan:CL_17100005_STATUS_CAN(1.0)" agencyID="StatCan" version="1.0" isFinal="false">
        <common:Name xml:lang="en">Status</common:Name>
        <structure:Code id="0" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_STATUS_CAN(1.0).0">
          <common:Name xml:lang="en">0 = normal</common:Name>
          <common:Name xml:lang="fr">0 = normal</common:Name>
        </structure:Code>
        <structure:Code id="1" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_STATUS_CAN(1.0).1">
          <common:Name xml:lang="en">.. = not available for a specific reference period</common:Name>
          <common:Name xml:lang="fr">.. = indisponible pour une période de référence précise</common:Name>
        </structure:Code>
        <structure:Code id="2" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_STATUS_CAN(1.0).2">
          <common:Name xml:lang="en">0s = value rounded to 0 (zero) where there is a meaningful distinction between true zero and the value that was rounded</common:Name>
          <common:Name xml:lang="fr">0s = valeur arrondie à 0 (zéro) là où il y a une distinction importante entre le zéro absolu et la valeur arrondie</common:Name>
        </structure:Code>
        <structure:Code id="3" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_STATUS_CAN(1.0).3">
          <common:Name xml:lang="en">A = data quality: excellent</common:Name>
          <common:Name xml:lang="fr">A = qualité des données: excellente</common:Name>
        </structure:Code>
        <structure:Code id="4" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_STATUS_CAN(1.0).4">
          <common:Name xml:lang="en">B = data quality: very good</common:Name>
          <common:Name xml:lang="fr">B = qualité des données: très bonne</common:Name>
        </structure:Code>
        <structure:Code id="5" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_STATUS_CAN(1.0).5">
          <common:Name xml:lang="en">C = data quality: good</common:Name>
          <common:Name xml:lang="fr">C = qualité des données: bonne</common:Name>
        </structure:Code>
        <structure:Code id="6" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_STATUS_CAN(1.0).6">
          <common:Name xml:lang="en">D = data quality: acceptable</common:Name>
          <common:Name xml:lang="fr">D = qualité des données: acceptable</common:Name>
        </structure:Code>
        <structure:Code id="7" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_STATUS_CAN(1.0).7">
          <common:Name xml:lang="en">E = use with caution</common:Name>
          <common:Name xml:lang="fr">E = à utiliser avec prudence</common:Name>
        </structure:Code>
        <structure:Code id="8" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_STATUS_CAN(1.0).8">
          <common:Name xml:lang="en">F = too unreliable to be published.</common:Name>
          <common:Name xml:lang="fr">F = trop peu fiable pour être publié</common:Name>
        </structure:Code>
        <structure:Code id="9" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_STATUS_CAN(1.0).9">
          <common:Name xml:lang="en">... = not applicable</common:Name>
          <common:Name xml:lang="fr">... = n'ayant pas lieu de figurer</common:Name>
        </structure:Code>
        <structure:Code id="10" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_STATUS_CAN(1.0).10">
          <common:Name xml:lang="en"><LOD = less than the limit of detection</common:Name>
          <common:Name xml:lang="fr"><LOD = inférieur à la limite de détection</common:Name>
        </structure:Code>
      </structure:Codelist>
      <structure:Codelist id="CL_17100005_SYMBOL" urn="urn:sdmx:org.sdmx.infomodel.codelist.Codelist=StatCan:CL_17100005_SYMBOL(1.0)" agencyID="StatCan" version="1.0" isFinal="false">
        <common:Name xml:lang="en">Symbol</common:Name>
        <structure:Code id="0" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_SYMBOL(1.0).0">
          <common:Name xml:lang="en">0 = none</common:Name>
          <common:Name xml:lang="fr">0 = aucun</common:Name>
        </structure:Code>
        <structure:Code id="1" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_SYMBOL(1.0).1">
          <common:Name xml:lang="en">p = preliminary</common:Name>
          <common:Name xml:lang="fr">p = provisoire</common:Name>
        </structure:Code>
        <structure:Code id="3" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_SYMBOL(1.0).3">
          <common:Name xml:lang="en">r = revised</common:Name>
          <common:Name xml:lang="fr">r = révisé</common:Name>
        </structure:Code>
      </structure:Codelist>
      <structure:Codelist id="CL_17100005_Sex" urn="urn:sdmx:org.sdmx.infomodel.codelist.Codelist=StatCan:CL_17100005_Sex(1.0)" agencyID="StatCan" version="1.0" isFinal="false">
        <common:Name xml:lang="en">Sex</common:Name>
        <structure:Code id="1" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Sex(1.0).1">
          <common:Name xml:lang="en">Both sexes</common:Name>
          <common:Name xml:lang="fr">Les deux sexes</common:Name>
        </structure:Code>
        <structure:Code id="2" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Sex(1.0).2">
          <common:Name xml:lang="en">Males</common:Name>
          <common:Name xml:lang="fr">Hommes</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
        <structure:Code id="3" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_Sex(1.0).3">
          <common:Name xml:lang="en">Females</common:Name>
          <common:Name xml:lang="fr">Femmes</common:Name>
          <structure:Parent>
            <Ref id="1" />
          </structure:Parent>
        </structure:Code>
      </structure:Codelist>
      <structure:Codelist id="CL_17100005_TERMINATED" urn="urn:sdmx:org.sdmx.infomodel.codelist.Codelist=StatCan:CL_17100005_TERMINATED(1.0)" agencyID="StatCan" version="1.0" isFinal="false">
        <common:Name xml:lang="en">Terminated</common:Name>
        <structure:Code id="0" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_TERMINATED(1.0).0">
          <common:Name xml:lang="en">0 = active</common:Name>
          <common:Name xml:lang="fr">0 = actif</common:Name>
        </structure:Code>
        <structure:Code id="1" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_TERMINATED(1.0).1">
          <common:Name xml:lang="en">t = terminated</common:Name>
          <common:Name xml:lang="fr">t = terminé</common:Name>
        </structure:Code>
      </structure:Codelist>
      <structure:Codelist id="CL_17100005_UOM" urn="urn:sdmx:org.sdmx.infomodel.codelist.Codelist=StatCan:CL_17100005_UOM(1.0)" agencyID="StatCan" version="1.0" isFinal="false">
        <common:Name xml:lang="en">Unit of measure</common:Name>
        <structure:Code id="249" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_UOM(1.0).249">
          <common:Name xml:lang="en">Persons</common:Name>
          <common:Name xml:lang="fr">Personnes</common:Name>
        </structure:Code>
        <structure:Code id="308" urn="urn:sdmx:org.sdmx.infomodel.codelist.Code=StatCan:CL_17100005_UOM(1.0).308">
          <common:Name xml:lang="en">Years</common:Name>
          <common:Name xml:lang="fr">Années</common:Name>
        </structure:Code>
      </structure:Codelist>
    </structure:Codelists>
    <structure:Concepts>
      <structure:ConceptScheme id="CONCEPTS_17100005" urn="urn:sdmx:org.sdmx.infomodel.conceptscheme.ConceptScheme=StatCan:CONCEPTS_17100005(1.0)" agencyID="StatCan" version="1.0" isFinal="false">
        <common:Name xml:lang="en">Concepts of Population estimates on July 1st, by age and sex</common:Name>
        <structure:Concept id="Geography" urn="urn:sdmx:org.sdmx.infomodel.conceptscheme.Concept=StatCan:CONCEPTS_17100005(1.0).Geography">
          <common:Name xml:lang="en">Geography</common:Name>
        </structure:Concept>
        <structure:Concept id="Sex" urn="urn:sdmx:org.sdmx.infomodel.conceptscheme.Concept=StatCan:CONCEPTS_17100005(1.0).Sex">
          <common:Name xml:lang="en">Sex</common:Name>
        </structure:Concept>
        <structure:Concept id="Age_group" urn="urn:sdmx:org.sdmx.infomodel.conceptscheme.Concept=StatCan:CONCEPTS_17100005(1.0).Age_group">
          <common:Name xml:lang="en">Age group</common:Name>
        </structure:Concept>
        <structure:Concept id="TIME_PERIOD" urn="urn:sdmx:org.sdmx.infomodel.conceptscheme.Concept=StatCan:CONCEPTS_17100005(1.0).TIME_PERIOD">
          <common:Name xml:lang="en">Time</common:Name>
        </structure:Concept>
        <structure:Concept id="OBS_VALUE" urn="urn:sdmx:org.sdmx.infomodel.conceptscheme.Concept=StatCan:CONCEPTS_17100005(1.0).OBS_VALUE">
          <common:Name xml:lang="en">Observation Value</common:Name>
        </structure:Concept>
        <structure:Concept id="UOM" urn="urn:sdmx:org.sdmx.infomodel.conceptscheme.Concept=StatCan:CONCEPTS_17100005(1.0).UOM">
          <common:Name xml:lang="en">Unit of measure</common:Name>
        </structure:Concept>
        <structure:Concept id="DGUID" urn="urn:sdmx:org.sdmx.infomodel.conceptscheme.Concept=StatCan:CONCEPTS_17100005(1.0).DGUID">
          <common:Name xml:lang="en">DGUID</common:Name>
        </structure:Concept>
        <structure:Concept id="SCALAR_FACTOR" urn="urn:sdmx:org.sdmx.infomodel.conceptscheme.Concept=StatCan:CONCEPTS_17100005(1.0).SCALAR_FACTOR">
          <common:Name xml:lang="en">Scalar Factor</common:Name>
        </structure:Concept>
        <structure:Concept id="VECTOR_ID" urn="urn:sdmx:org.sdmx.infomodel.conceptscheme.Concept=StatCan:CONCEPTS_17100005(1.0).VECTOR_ID">
          <common:Name xml:lang="en">Vector ID</common:Name>
        </structure:Concept>
        <structure:Concept id="NB_DECIMAL" urn="urn:sdmx:org.sdmx.infomodel.conceptscheme.Concept=StatCan:CONCEPTS_17100005(1.0).NB_DECIMAL">
          <common:Name xml:lang="en">Number of decimal</common:Name>
        </structure:Concept>
        <structure:Concept id="SYMBOL" urn="urn:sdmx:org.sdmx.infomodel.conceptscheme.Concept=StatCan:CONCEPTS_17100005(1.0).SYMBOL">
          <common:Name xml:lang="en">Symbol</common:Name>
        </structure:Concept>
        <structure:Concept id="STATUS_CAN" urn="urn:sdmx:org.sdmx.infomodel.conceptscheme.Concept=StatCan:CONCEPTS_17100005(1.0).STATUS_CAN">
          <common:Name xml:lang="en">Status</common:Name>
        </structure:Concept>
        <structure:Concept id="TERMINATED" urn="urn:sdmx:org.sdmx.infomodel.conceptscheme.Concept=StatCan:CONCEPTS_17100005(1.0).TERMINATED">
          <common:Name xml:lang="en">Terminated</common:Name>
        </structure:Concept>
        <structure:Concept id="SECURITY_LEVEL" urn="urn:sdmx:org.sdmx.infomodel.conceptscheme.Concept=StatCan:CONCEPTS_17100005(1.0).SECURITY_LEVEL">
          <common:Name xml:lang="en">Security Level</common:Name>
        </structure:Concept>
      </structure:ConceptScheme>
    </structure:Concepts>
    <structure:DataStructures>
      <structure:DataStructure id="Data_Structure_17100005" urn="urn:sdmx:org.sdmx.infomodel.datastructure.DataStructure=StatCan:Data_Structure_17100005(1.0)" agencyID="StatCan" version="1.0" isFinal="false">
        <common:Annotations>
          <common:Annotation>
            <common:AnnotationType>Footnote</common:AnnotationType>
            <common:AnnotationText xml:lang="en">Postcensal estimates are based on the 2016 Census counts adjusted for census net undercoverage (CNU) (including adjustment for incompletely enumerated Indian reserves (IEIR)) and the components of demographic growth that occurred since that census. Intercensal estimates are produced using counts from two consecutive censuses adjusted for CNU (including (IEIR) and postcensal estimates.</common:AnnotationText>
            <common:AnnotationText xml:lang="fr">Les estimations postcensitaires sont produites à partir des comptes du Recensement de 2016, rajustées pour le sous-dénombrement net du recensement (SDNR) (incluant le rajustement pour les réserves indiennes partiellement dénombrées (RIPD)) et des composantes de l'accroissement démographique survenu depuis ce recensement. Les estimations intercensitaires sont produites à l'aide des comptes de deux recensements consécutifs rajustés pour le SDNR (inlcuant les RIPD) et des estimations postcensitaires.</common:AnnotationText>
          </common:Annotation>
          <common:Annotation>
            <common:AnnotationType>Footnote</common:AnnotationType>
            <common:AnnotationText xml:lang="en">Estimates are final intercensal up to 2015, final postcensal for 2016, updated postcensal for 2017 and 2018 and preliminary postcensal for 2019.</common:AnnotationText>
            <common:AnnotationText xml:lang="fr">Les estimations sont intercensitaires définitives jusqu'en 2015, postcensitaires définitives pour 2016, postcensitaires mises à jour pour 2017 et 2018 et postcensitaires provisoires pour 2019.</common:AnnotationText>
          </common:Annotation>
          <common:Annotation>
            <common:AnnotationType>Footnote</common:AnnotationType>
            <common:AnnotationText xml:lang="en">Population estimates for Northwest Territories and Nunavut are presented separately from 1991.</common:AnnotationText>
            <common:AnnotationText xml:lang="fr">Les estimations de la population des Territoires du Nord-Ouest et du Nunavut sont présentées séparément à partir de 1991.</common:AnnotationText>
          </common:Annotation>
          <common:Annotation>
            <common:AnnotationType>Footnote</common:AnnotationType>
            <common:AnnotationText xml:lang="en">Prior to 1991, only estimates of population for Northwest Territories and Nunavut combined are available.</common:AnnotationText>
            <common:AnnotationText xml:lang="fr">Avant 1991, seules les estimations de la population des Territoires du Nord-Ouest et du Nunavut combinées sont disponibles.</common:AnnotationText>
          </common:Annotation>
          <common:Annotation>
            <common:AnnotationType>Footnote</common:AnnotationType>
            <common:AnnotationText xml:lang="en">Age at last birthday in years.</common:AnnotationText>
            <common:AnnotationText xml:lang="fr">Âge atteint au dernier anniversaire en années révolues.</common:AnnotationText>
          </common:Annotation>
          <common:Annotation>
            <common:AnnotationType>Footnote</common:AnnotationType>
            <common:AnnotationText xml:lang="en">Data for persons aged 90 to 100 years and over will be available from 2001.</common:AnnotationText>
            <common:AnnotationText xml:lang="fr">Les données des personnes âgées de 90 à 100 ans et plus sont disponibles à partir de 2001.</common:AnnotationText>
          </common:Annotation>
          <common:Annotation>
            <common:AnnotationType>Footnote</common:AnnotationType>
            <common:AnnotationText xml:lang="en">The population growth, which is used to calculate population estimates, is comprised of the natural growth (Tables 17100006 and 17100016), international migration (Table 17100014) and interprovincial migration (Table 17100015).</common:AnnotationText>
            <common:AnnotationText xml:lang="fr">L'accroissement démographique qui sert au calcul des estimations de la population, est composé de l'accroissement naturel (Tableaux 17100006 et 17100016), de la migration internationale (Tableau 17100014) et de la migration interprovinciale (Tableau 17100015).</common:AnnotationText>
          </common:Annotation>
          <common:Annotation>
            <common:AnnotationTitle>Cansim ID / Id Cansim</common:AnnotationTitle>
            <common:AnnotationType>CansimID</common:AnnotationType>
            <common:AnnotationText xml:lang="en">051-0001</common:AnnotationText>
            <common:AnnotationText xml:lang="fr">051-0001</common:AnnotationText>
          </common:Annotation>
          <common:Annotation>
            <common:AnnotationTitle>Frequency / Fréquence</common:AnnotationTitle>
            <common:AnnotationType>freq</common:AnnotationType>
            <common:AnnotationText xml:lang="en">Annual</common:AnnotationText>
            <common:AnnotationText xml:lang="fr">Annuelle</common:AnnotationText>
          </common:Annotation>
          <common:Annotation>
            <common:AnnotationTitle>Subject / Suject</common:AnnotationTitle>
            <common:AnnotationType>subject</common:AnnotationType>
            <common:AnnotationText xml:lang="en">Population and demography</common:AnnotationText>
            <common:AnnotationText xml:lang="fr">Population et démographie</common:AnnotationText>
          </common:Annotation>
          <common:Annotation>
            <common:AnnotationTitle>Variable List / Liste de variables</common:AnnotationTitle>
            <common:AnnotationType>variableList</common:AnnotationType>
            <common:AnnotationText xml:lang="en">CURRENT - a cube available to the public and that is current</common:AnnotationText>
            <common:AnnotationText xml:lang="fr">ACTIF - un cube qui est disponible au public et qui est toujours mise a jour</common:AnnotationText>
          </common:Annotation>
          <common:Annotation>
            <common:AnnotationTitle>URL</common:AnnotationTitle>
            <common:AnnotationType>URL</common:AnnotationType>
            <common:AnnotationText xml:lang="en">https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1710000501</common:AnnotationText>
            <common:AnnotationText xml:lang="fr">https://www150.statcan.gc.ca/t1/tbl1/fr/tv.action?pid=1710000501</common:AnnotationText>
          </common:Annotation>
          <common:Annotation />
          <common:Annotation />
        </common:Annotations>
        <common:Name xml:lang="en">Data Structure of Population estimates on July 1st, by age and sex</common:Name>
        <structure:DataStructureComponents>
          <structure:DimensionList id="DimensionDescriptor" urn="urn:sdmx:org.sdmx.infomodel.datastructure.DimensionDescriptor=StatCan:Data_Structure_17100005(1.0).DimensionDescriptor">
            <structure:Dimension id="Geography" urn="urn:sdmx:org.sdmx.infomodel.datastructure.Dimension=StatCan:Data_Structure_17100005(1.0).Geography" position="1">
              <structure:ConceptIdentity>
                <Ref id="Geography" maintainableParentID="CONCEPTS_17100005" maintainableParentVersion="1.0" agencyID="StatCan" package="conceptscheme" class="Concept" />
              </structure:ConceptIdentity>
              <structure:LocalRepresentation>
                <structure:Enumeration>
                  <Ref id="CL_17100005_Geography" version="1.0" agencyID="StatCan" package="codelist" class="Codelist" />
                </structure:Enumeration>
              </structure:LocalRepresentation>
            </structure:Dimension>
            <structure:Dimension id="Sex" urn="urn:sdmx:org.sdmx.infomodel.datastructure.Dimension=StatCan:Data_Structure_17100005(1.0).Sex" position="2">
              <structure:ConceptIdentity>
                <Ref id="Sex" maintainableParentID="CONCEPTS_17100005" maintainableParentVersion="1.0" agencyID="StatCan" package="conceptscheme" class="Concept" />
              </structure:ConceptIdentity>
              <structure:LocalRepresentation>
                <structure:Enumeration>
                  <Ref id="CL_17100005_Sex" version="1.0" agencyID="StatCan" package="codelist" class="Codelist" />
                </structure:Enumeration>
              </structure:LocalRepresentation>
            </structure:Dimension>
            <structure:Dimension id="Age_group" urn="urn:sdmx:org.sdmx.infomodel.datastructure.Dimension=StatCan:Data_Structure_17100005(1.0).Age_group" position="3">
              <structure:ConceptIdentity>
                <Ref id="Age_group" maintainableParentID="CONCEPTS_17100005" maintainableParentVersion="1.0" agencyID="StatCan" package="conceptscheme" class="Concept" />
              </structure:ConceptIdentity>
              <structure:LocalRepresentation>
                <structure:Enumeration>
                  <Ref id="CL_17100005_Age_group" version="1.0" agencyID="StatCan" package="codelist" class="Codelist" />
                </structure:Enumeration>
              </structure:LocalRepresentation>
            </structure:Dimension>
            <structure:TimeDimension id="TIME_PERIOD" urn="urn:sdmx:org.sdmx.infomodel.datastructure.TimeDimension=StatCan:Data_Structure_17100005(1.0).TIME_PERIOD" position="4">
              <structure:ConceptIdentity>
                <Ref id="TIME_PERIOD" maintainableParentID="CONCEPTS_17100005" maintainableParentVersion="1.0" agencyID="StatCan" package="conceptscheme" class="Concept" />

              </structure:ConceptIdentity>
              <structure:LocalRepresentation>
                <structure:TextFormat textType="ObservationalTimePeriod" />
              </structure:LocalRepresentation>
            </structure:TimeDimension>
          </structure:DimensionList>
          <structure:AttributeList id="AttributeDescriptor" urn="urn:sdmx:org.sdmx.infomodel.datastructure.AttributeDescriptor=StatCan:Data_Structure_17100005(1.0).AttributeDescriptor">
            <structure:Attribute id="UOM" urn="urn:sdmx:org.sdmx.infomodel.datastructure.DataAttribute=StatCan:Data_Structure_17100005(1.0).UOM" assignmentStatus="Mandatory">
              <structure:ConceptIdentity>
                <Ref id="UOM" maintainableParentID="CONCEPTS_17100005" maintainableParentVersion="1.0" agencyID="StatCan" package="conceptscheme" class="Concept" />
              </structure:ConceptIdentity>
              <structure:LocalRepresentation>
                <structure:Enumeration>
                  <Ref id="CL_17100005_UOM" version="1.0" agencyID="StatCan" package="codelist" class="Codelist" />
                </structure:Enumeration>
              </structure:LocalRepresentation>
              <structure:AttributeRelationship>
                <structure:Dimension>
                  <Ref id="Geography" />
                </structure:Dimension>
                <structure:Dimension>
                  <Ref id="Sex" />
                </structure:Dimension>
                <structure:Dimension>
                  <Ref id="Age_group" />
                </structure:Dimension>
              </structure:AttributeRelationship>
            </structure:Attribute>
            <structure:Attribute id="DGUID" urn="urn:sdmx:org.sdmx.infomodel.datastructure.DataAttribute=StatCan:Data_Structure_17100005(1.0).DGUID" assignmentStatus="Conditional">
              <structure:ConceptIdentity>
                <Ref id="DGUID" maintainableParentID="CONCEPTS_17100005" maintainableParentVersion="1.0" agencyID="StatCan" package="conceptscheme" class="Concept" />
              </structure:ConceptIdentity>
              <structure:LocalRepresentation>
                <structure:Enumeration>
                  <Ref id="CL_17100005_DGUID" version="1.0" agencyID="StatCan" package="codelist" class="Codelist" />
                </structure:Enumeration>
              </structure:LocalRepresentation>
              <structure:AttributeRelationship>
                <structure:Dimension>
                  <Ref id="Geography" />
                </structure:Dimension>
                <structure:Dimension>
                  <Ref id="Sex" />
                </structure:Dimension>
                <structure:Dimension>
                  <Ref id="Age_group" />
                </structure:Dimension>
              </structure:AttributeRelationship>
            </structure:Attribute>
            <structure:Attribute id="SCALAR_FACTOR" urn="urn:sdmx:org.sdmx.infomodel.datastructure.DataAttribute=StatCan:Data_Structure_17100005(1.0).SCALAR_FACTOR" assignmentStatus="Mandatory">
              <structure:ConceptIdentity>
                <Ref id="SCALAR_FACTOR" maintainableParentID="CONCEPTS_17100005" maintainableParentVersion="1.0" agencyID="StatCan" package="conceptscheme" class="Concept" />
              </structure:ConceptIdentity>
              <structure:LocalRepresentation>
                <structure:Enumeration>
                  <Ref id="CL_17100005_SCALAR_FACTOR" version="1.0" agencyID="StatCan" package="codelist" class="Codelist" />
                </structure:Enumeration>
              </structure:LocalRepresentation>
              <structure:AttributeRelationship>
                <structure:Dimension>
                  <Ref id="Geography" />
                </structure:Dimension>
                <structure:Dimension>
                  <Ref id="Sex" />
                </structure:Dimension>
                <structure:Dimension>
                  <Ref id="Age_group" />
                </structure:Dimension>
              </structure:AttributeRelationship>
            </structure:Attribute>
            <structure:Attribute id="VECTOR_ID" urn="urn:sdmx:org.sdmx.infomodel.datastructure.DataAttribute=StatCan:Data_Structure_17100005(1.0).VECTOR_ID" assignmentStatus="Mandatory">
              <structure:ConceptIdentity>
                <Ref id="VECTOR_ID" maintainableParentID="CONCEPTS_17100005" maintainableParentVersion="1.0" agencyID="StatCan" package="conceptscheme" class="Concept" />
              </structure:ConceptIdentity>
              <structure:AttributeRelationship>
                <structure:Dimension>
                  <Ref id="Geography" />
                </structure:Dimension>
                <structure:Dimension>
                  <Ref id="Sex" />
                </structure:Dimension>
                <structure:Dimension>
                  <Ref id="Age_group" />
                </structure:Dimension>
              </structure:AttributeRelationship>
            </structure:Attribute>
            <structure:Attribute id="NB_DECIMAL" urn="urn:sdmx:org.sdmx.infomodel.datastructure.DataAttribute=StatCan:Data_Structure_17100005(1.0).NB_DECIMAL" assignmentStatus="Mandatory">
              <structure:ConceptIdentity>
                <Ref id="NB_DECIMAL" maintainableParentID="CONCEPTS_17100005" maintainableParentVersion="1.0" agencyID="StatCan" package="conceptscheme" class="Concept" />
              </structure:ConceptIdentity>
              <structure:AttributeRelationship>
                <structure:Dimension>
                  <Ref id="Geography" />
                </structure:Dimension>
                <structure:Dimension>
                  <Ref id="Sex" />
                </structure:Dimension>
                <structure:Dimension>
                  <Ref id="Age_group" />
                </structure:Dimension>
              </structure:AttributeRelationship>
            </structure:Attribute>
            <structure:Attribute id="SYMBOL" urn="urn:sdmx:org.sdmx.infomodel.datastructure.DataAttribute=StatCan:Data_Structure_17100005(1.0).SYMBOL" assignmentStatus="Conditional">
              <structure:ConceptIdentity>
                <Ref id="SYMBOL" maintainableParentID="CONCEPTS_17100005" maintainableParentVersion="1.0" agencyID="StatCan" package="conceptscheme" class="Concept" />
              </structure:ConceptIdentity>
              <structure:LocalRepresentation>
                <structure:Enumeration>
                  <Ref id="CL_17100005_SYMBOL" version="1.0" agencyID="StatCan" package="codelist" class="Codelist" />
                </structure:Enumeration>
              </structure:LocalRepresentation>
              <structure:AttributeRelationship>
                <structure:PrimaryMeasure>
                  <Ref id="OBS_VALUE" />
                </structure:PrimaryMeasure>
              </structure:AttributeRelationship>
            </structure:Attribute>
            <structure:Attribute id="STATUS_CAN" urn="urn:sdmx:org.sdmx.infomodel.datastructure.DataAttribute=StatCan:Data_Structure_17100005(1.0).STATUS_CAN" assignmentStatus="Conditional">
              <structure:ConceptIdentity>
                <Ref id="STATUS_CAN" maintainableParentID="CONCEPTS_17100005" maintainableParentVersion="1.0" agencyID="StatCan" package="conceptscheme" class="Concept" />

              </structure:ConceptIdentity>
              <structure:LocalRepresentation>
                <structure:Enumeration>
                  <Ref id="CL_17100005_STATUS_CAN" version="1.0" agencyID="StatCan" package="codelist" class="Codelist" />
                </structure:Enumeration>
              </structure:LocalRepresentation>
              <structure:AttributeRelationship>
                <structure:PrimaryMeasure>
                  <Ref id="OBS_VALUE" />
                </structure:PrimaryMeasure>
              </structure:AttributeRelationship>
            </structure:Attribute>
            <structure:Attribute id="TERMINATED" urn="urn:sdmx:org.sdmx.infomodel.datastructure.DataAttribute=StatCan:Data_Structure_17100005(1.0).TERMINATED" assignmentStatus="Conditional">
              <structure:ConceptIdentity>
                <Ref id="TERMINATED" maintainableParentID="CONCEPTS_17100005" maintainableParentVersion="1.0" agencyID="StatCan" package="conceptscheme" class="Concept" />
              </structure:ConceptIdentity>
              <structure:LocalRepresentation>
                <structure:Enumeration>
                  <Ref id="CL_17100005_TERMINATED" version="1.0" agencyID="StatCan" package="codelist" class="Codelist" />
                </structure:Enumeration>
              </structure:LocalRepresentation>
              <structure:AttributeRelationship>
                <structure:Dimension>
                  <Ref id="Geography" />
                </structure:Dimension>
                <structure:Dimension>
                  <Ref id="Sex" />
                </structure:Dimension>
                <structure:Dimension>
                  <Ref id="Age_group" />
                </structure:Dimension>
              </structure:AttributeRelationship>
            </structure:Attribute>
            <structure:Attribute id="SECURITY_LEVEL" urn="urn:sdmx:org.sdmx.infomodel.datastructure.DataAttribute=StatCan:Data_Structure_17100005(1.0).SECURITY_LEVEL" assignmentStatus="Conditional">
              <structure:ConceptIdentity>
                <Ref id="SECURITY_LEVEL" maintainableParentID="CONCEPTS_17100005" maintainableParentVersion="1.0" agencyID="StatCan" package="conceptscheme" class="Concept" />
              </structure:ConceptIdentity>
              <structure:LocalRepresentation>
                <structure:Enumeration>
                  <Ref id="CL_17100005_SECURITY_LEVEL" version="1.0" agencyID="StatCan" package="codelist" class="Codelist" />
                </structure:Enumeration>
              </structure:LocalRepresentation>
              <structure:AttributeRelationship>
                <structure:PrimaryMeasure>
                  <Ref id="OBS_VALUE" />
                </structure:PrimaryMeasure>
              </structure:AttributeRelationship>
            </structure:Attribute>
          </structure:AttributeList>
          <structure:MeasureList id="MeasureDescriptor" urn="urn:sdmx:org.sdmx.infomodel.datastructure.MeasureDescriptor=StatCan:Data_Structure_17100005(1.0).MeasureDescriptor">
            <structure:PrimaryMeasure id="OBS_VALUE" urn="urn:sdmx:org.sdmx.infomodel.datastructure.PrimaryMeasure=StatCan:Data_Structure_17100005(1.0).OBS_VALUE">
              <structure:ConceptIdentity>
                <Ref id="OBS_VALUE" maintainableParentID="CONCEPTS_17100005" maintainableParentVersion="1.0" agencyID="StatCan" package="conceptscheme" class="Concept" />
              </structure:ConceptIdentity>
            </structure:PrimaryMeasure>
          </structure:MeasureList>
        </structure:DataStructureComponents>
      </structure:DataStructure>
    </structure:DataStructures>
  </message:Structures>
</message:Structure>

Content negotiation

Using the HTTP content negotiation mechanism, you can select the representation to be returned and you can also instruct the service to compress the data to be returned.

Format selection

The following data formats are supported by the web service:

  • Data formats:
    • SDMX-ML 2.1 Generic Data format:
      application/vnd.sdmx.genericdata+xml;version=2.1. This is the default for data queries.
    • SDMX-ML 2.1 Structure Specific Data format:
      application/vnd.sdmx.structurespecificdata+xml;version=2.1
    • SDMX-JSON: application/vnd.sdmx.data+json;version=1.0.0-wd
    • CSV: text/csv
  • Metadata formats:
    • SDMX-ML Structure format: application/vnd.sdmx.structure+xml;version=2.1

For additional information about the various SDMX-ML formats, please refer to the SDMX documentation.

Generic mime types (application/json, application/xml) are also supported but they will always point to the most recent version of the SDMX formats supported by these web services. That version will change in the future, whenever new versions of the various SDMX formats are made available.

Is it therefore highly recommended that implementers use one of the specific mime types above rather than a generic one, to avoid issues when new versions of the formats are released.

Output compression

You can also enable data compression using the Accept-Encoding HTTP header field. Compressed messages are typically significantly smaller than uncompressed messages, which can lead to improvements when transferring large amount data over the network.

Status codes

The web service returns the following HTTP status codes.

HTTP status codes
Code Status Description
200 OK Your query could be successfully processed and the data have been returned.
304 No changes No changes since the timestamp supplied in the If-Modified-Since header.
400 Syntax error If there is a syntactic or semantic issue with the parameters you supplied, a 400 HTTP status code will be returned.
404 No results found A 404 HTTP status code will be returned if there are no results matching the query.
406 Not Acceptable If you ask for a resource representation that we don't support, a 406 HTTP status code will be returned. See the section about European Central Bank content negotiation, to view the supported representations.
500 Internal Server Error When there is an issue on our side, a 500 HTTP status code will be returned. Feel free to try again later or to contact our support hotline.
501 Not implemented This web service offers a subset of the functionality offered by the SDMX RESTful web service specification. When you use a feature that we have not yet implemented, a 501 HTTP status code will be returned.
503 Service unavailable If our web service is temporarily unavailable, a 503 HTTP status code will be returned.

Useful tips

The SDMX Technical Working Group publishes a list of tips and tricks for web service clients, which is well worth reading.

The SDMX Technical Working Group has also published a cheat sheet (PDF, 83 KB) which summarises, in 2 A4 pages, the main points of the SDMX 2.1 RESTful API.

If the documentation does not contain the information you require, or if you have any general comments or feedback regarding our web service, please contact us.

All sample queries in this tutorial can also be executed using command-line tools such as curl or wget:

wget -O data.xml \
--header="Accept:application/vnd.sdmx.structurespecificdata+xml;version=2.1" \
https://sdw-wsrest.ecb.europa.eu/service/data/EXR/M.NOK.EUR.SP00.A
curl -k -o data.xml \
--header "Accept:application/vnd.sdmx.structurespecificdata+xml;version=2.1" \
https://sdw-wsrest.ecb.europa.eu/service/data/EXR/M.NOK.EUR.SP00.A

Appendix 1

Table 17100005 - Population estimates on July 1st, by age and sex

Thumbnail - Table 17100005 - Population estimates on July 1st, by age and sex

1st Dimension - Geography
Codes for 1st Dimension - Geography
Code Name_en
1 Canada
2 Newfoundland and Labrador
3 Prince Edward Island
4 Nova Scotia
5 New Brunswick
6 Quebec
7 Ontario
8 Manitoba
9 Saskatchewan
10 Alberta
11 British Columbia
12 Yukon
13 Northwest Territories including Nunavut
14 Northwest Territories
15 Nunavut
2nd Dimension – Sex
Codes for 2nd Dimension – Sex
Code Name_en
1 Both sexes
2 Males
3 Females
3rd Dimension – Age group
Codes for 3rd Dimension – Age group
Code Name_en
1 All ages
2 0 years
3 1 year
4 2 years
5 3 years
6 4 years
7 0 to 4 years
8 5 years
9 6 years
10 7 years
11 8 years
12 9 years
13 5 to 9 years
14 10 years
15 11 years
16 12 years
17 13 years
18 14 years
19 10 to 14 years
20 15 years
21 16 years
22 17 years
23 18 years
24 19 years
25 15 to 19 years
26 20 years
27 21 years
28 22 years
29 23 years
30 24 years
31 20 to 24 years
32 25 years
33 26 years
34 27 years
35 28 years
36 29 years
37 25 to 29 years
38 30 years
39 31 years
40 32 years
41 33 years
42 34 years
43 30 to 34 years
44 35 years
45 36 years
46 37 years
47 38 years
48 39 years
49 35 to 39 years
50 40 years
51 41 years
52 42 years
53 43 years
54 44 years
55 40 to 44 years
56 45 years
57 46 years
58 47 years
59 48 years
60 49 years
61 45 to 49 years
62 50 years
63 51 years
64 52 years
65 53 years
66 54 years
67 50 to 54 years
68 55 years
69 56 years
70 57 years
71 58 years
72 59 years
73 55 to 59 years
74 60 years
75 61 years
76 62 years
77 63 years
78 64 years
79 60 to 64 years
80 65 years
81 66 years
82 67 years
83 68 years
84 69 years
85 65 to 69 years
86 70 to 74 years
87 75 to 79 years
88 80 to 84 years
89 85 to 89 years
90 90 years and over
91 0 to 14 years
92 0 to 15 years
93 0 to 16 years
94 0 to 17 years
95 15 to 49 years
96 15 to 64 years
97 16 to 64 years
98 17 to 64 years
99 18 to 24 years
100 18 to 64 years
101 18 years and over
102 25 to 44 years
103 45 to 64 years
104 65 years and over
105 Median age
106 70 years
107 71 years
108 72 years
109 73 years
110 74 years
111 75 years
112 76 years
113 77 years
114 78 years
115 79 years
116 80 years
117 81 years
118 82 years
119 83 years
120 84 years
121 85 years
122 86 years
123 87 years
124 88 years
125 89 years
126 90 to 94 years
127 90 years
128 91 years
129 92 years
130 93 years
131 94 years
132 95 to 99 years
133 95 years
134 96 years
135 97 years
136 98 years
137 99 years
138 100 years and over

Appendix 2: CURL Examples

SDMX structure sample URL:

curl -X GET -k -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/structure/Data_Structure_13100101'

curl -X GET -k -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/structure/Data_Structure_13100101'

pid=13100101

curl -X GET -k -H 'Accept: application/vnd.sdmx.structure+xml;version=2.1' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/structure/Data_Structure_13100101'

curl -X GET -k -H 'Accept: application/vnd.sdmx.structure+xml;version=2.1' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/structure/Data_Structure_13100101'

pid=13100101

Header:

Accept: application/vnd.sdmx.structure+xml;version=2.1

curl -X GET -k -H 'Accept: application/xml' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/structure/Data_Structure_13100101'

curl -X GET -k -H 'Accept: application/xml' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/structure/Data_Structure_13100101'

pid=13100101

Header:

Accept: application/xml

SDMX data sample URL:

curl -X GET -k -H 'Accept: application/vnd.sdmx.structurespecificdata+xml;version=2.1' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_13100101/1.1.1+2+3+4?startPeriod=2014&endPeriod=2015'

curl -X GET -k -H 'Accept: application/vnd.sdmx.structurespecificdata+xml;version=2.1' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_13100101/1.1.1+2+3+4?startPeriod=2014&endPeriod=2015'

pid = 13100101

Header:

Accept: application/vnd.sdmx.structurespecificdata+xml;version=2.1
dimensions are separated by "." and members are separated by "+". The date format should be "yyyy-mm-dd". if value of "day" is missing, the default value is "01"

curl -X GET -k -H 'Accept: application/vnd.sdmx.data+json;version=1.0.0-wd' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_18100002/1.1+2?startPeriod=2018-01&endPeriod=2018-05'

curl -X GET -k -H 'Accept: application/vnd.sdmx.data+json;version=1.0.0-wd' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_18100002/1.1+2?startPeriod=2018-01&endPeriod=2018-05'

pid = 18100102

Header:

Accept: application/vnd.sdmx.data+json;version=1.0.0-wd

curl -X GET -k -H 'Accept: application/vnd.sdmx.genericdata+xml;version=2.1' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_13100101/1.1.1+2+3+4?startPeriod=2014&endPeriod=2015'

curl -X GET -k -H 'Accept: application/vnd.sdmx.genericdata+xml;version=2.1' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_13100101/1.1.1+2+3+4?startPeriod=2014&endPeriod=2015'

pid = 13100101

Header:

Accept: application/vnd.sdmx.genericdata+xml;version=2.1

curl -X GET -k -H 'Accept: application/xml' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_13100101/1.1.1+2+3+4?startPeriod=2014&endPeriod=2015'

curl -X GET -k -H 'Accept: application/xml' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_13100101/1.1.1+2+3+4?startPeriod=2014&endPeriod=2015'

pid = 13100101

Header:

Accept: application/xml

curl -X GET -k -H 'Accept: application/json' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_13100101/1.1.1+2+3+4?startPeriod=2014&endPeriod=2015'

curl -X GET -k -H 'Accept: application/json' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_13100101/1.1.1+2+3+4?startPeriod=2014&endPeriod=2015'

pid = 13100101

Header:

Accept: application/xml

curl -X GET -k -H 'Accept: application/json' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_13100101/1.1.1+2+3+4?firstNObservations=1'

curl -X GET -k -H 'Accept: application/json' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_13100101/1.1.1+2+3+4?firstNObservations=1'

curl -X GET -k -H 'Accept: application/xml' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_13100101/1.1.1+2+3+4?lastNObservations=1'

curl -X GET -k -H 'Accept: application/xml' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/data/DF_13100101/1.1.1+2+3+4?lastNObservations=1'

Vector examples

curl -X GET -k -H 'Accept: application/xml' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/vector/v114809245?lastNObservations=1'

curl -X GET -k -H 'Accept: application/xml' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/vector/v114809245?lastNObservations=1'

curl -X GET -k -H 'Accept: application/json' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/vector/v114809245?firstNObservations=1'

curl -X GET -k -H 'Accept: application/json' -i 'https://www150.statcan.gc.ca/t1/wds/sdmx/statcan/rest/vector/v114809245?firstNObservations=1'
 
Date modified: