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

1 REPLY
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.