SDMX Service Eurostat. How to parse XML file ?

Highlighted
Four Stars

SDMX Service Eurostat. How to parse XML file ?

Hi,

I am quite new with Talend and looking for some help regarding the Eurostat service.

The aim of the project is to extract data from Eurostat via their SDMX web-service.

http://ec.europa.eu/eurostat/web/sdmx-web-services/about-this-service.

 

Following their instructions I managed to get XML files from the following requests on two different datasets  :

 

Dataset defintion
http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_DS-016890
http://ec.europa.eu/eurostat/SDMX/diss-web/rest/datastructure/ESTAT/DSD_DS-016894

 

Data
http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/DS-016890/M.FR..22042177.2.SUPPLEMENTARY_QUANTI...
http://ec.europa.eu/eurostat/SDMX/diss-web/rest/data/DS-016894/M.FR..2207+2208.2.QUANTITY_IN_100KG/?...

 

The problem is now to parse the xml results in Talend. I tried with tXMLMap but do not manage to get the schema being automatically recognized. 
Could someone help me with this first step ?


Thanks in advance

Highlighted
Moderator

Re: SDMX Service Eurostat. How to parse XML file ?

Hi,

For your SDMX file, you could try the tFileInputXML and select SAX parsing on the advanced settings. SAX is much quicker than DOM, but you will not be able to use look ahead or look back xpath functions.

Best regards

Sabrina

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
Six Stars
Six Stars

Re: SDMX Service Eurostat. How to parse XML file ?

Does talend provide the possibility to create SDMX files?

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog