Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
andreasignori
Contributor
Contributor

XML merge node attribute with child attribute

Hi

I'm currently developing a job to read and get the data from this xml https://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist-90d.xml .

I need to get this information like:

<DATA> | <CURRENCY> | <RATE>.

Using xPath i manage to do this:0695b00000Gh833AAB.png

And the result is :

0695b00000Gh82pAAB.png

Now i need to have it for every single currency and not only for USD, how can i get every single value for every single currency, and still get the result as <DATA> | <CURRENCY> | <RATE>?

Thanks for you patient (I'm new in talend 😄 I like it)

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi

Read the file as a document and extract value from the document on tXMLMap, see

0695b00000GhEc8AAF.png0695b00000GhEpNAAV.pngon tXMLMap, import the XML tree structure from file.

0695b00000GhEswAAF.png 

Hope it helps you!

 

Regards

Shong

View solution in original post

4 Replies
Anonymous
Not applicable

Hi

Read the file as a document and extract value from the document on tXMLMap, see

0695b00000GhEc8AAF.png0695b00000GhEpNAAV.pngon tXMLMap, import the XML tree structure from file.

0695b00000GhEswAAF.png 

Hope it helps you!

 

Regards

Shong

andreasignori
Contributor
Contributor
Author

Sir, i owe you a coffe, probably a beer, and maybe one pizza too. Thank you!

andreasignori
Contributor
Contributor
Author

may i ask you another question? Is possible to automatically read the tree schema? (I had to do it manually)

Anonymous
Not applicable

Impossible, you have to import the tree schema from file/repository or define it at design time.