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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Processing Xml messages and converting in struct format

Hi,

I have xml below i want to process the xml using Talend and i want output to be in below  expected struct format,so that i can create hive tables on this struct format.

 

 

 

<flighttic>
<pid>54846515522</pid>
<amount>2511</amount>
<person_details>
<person>
<fname>jakka</fname>
<lname>dilip</lname>
<flyinf0>
<fly>
<supplier>ETHIAD</supplier>
<date>2017/3/20 11:45 </date>
<mealcode>25</mealcode>
</fly>
<fly>
<supplier>American airlines</supplier>
<date>2017/3/21 22:45 </date>
<mealcode>19</mealcode>
</fly>
<fly>
<supplier>southwest</supplier>
<date>2017/3/23 14:45 </date>
</mealcode>
</fly>
<fly>
<supplier>southwest</supplier>
<date>2017/3/23 18:30</date>
<mealcode>25</mealcode>
</fly>
</flyinfo>
</person>
</person_details>
</flighttic>

 

 

expected output ::

pid amount fname lanme supplier date mealcode
5.48E+10 2511 jakka dilip ETHIAD|American airlines|southwest|southwest 2017/3/20 11:45|2017/3/21 22:45|2017/3/23 14:45|2017/3/23 18:30 25|19||25
Labels (4)
2 Replies
Anonymous
Not applicable
Author

Hi,

 

Do you have a free Talend version ? Or a subscription version ? In case it is a subscription version, does your version include Data Mapper ?

 

Eric

Anonymous
Not applicable
Author

I am using Talend open studio for big data