Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
hiba1
Contributor
Contributor

Dynamic xml schema

Hi all,

it's possible to create a dynamic xml schema with talend !

for example :

this is my xml schema :

<Request>

<Head><

Username>test</Username>

<Password>test</Password>

<RequestType>test</RequestType>

</Head>

<Body>

<HotelIds>

<HotelId>hotelId</HotelId>

</HotelIds>

</Body>

</Request>

**********

the hotelId will be inserted from sql table ....i'm able to inesrt up to 500 hotelId to xml file.

My goal is to make the node <hotelId> become added dynamically as the number of hotelId extracted from the sql table .

like this :

<Request>

<Head><

Username>test</Username>

<Password>test</Password>

<RequestType>test</RequestType>

</Head>

<Body>

<HotelIds>

<HotelId>hotelId</HotelId>

......... 500 times

<HotelId>hotelId</HotelId>

</HotelIds>

</Body>

</Request>

any help please!

Thanks

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

If I understand your question well, you just need to set the HotelId as loop element in the XML Tree structure of tAdvancedFileOutputXML.

 

View solution in original post

2 Replies
Anonymous
Not applicable

If I understand your question well, you just need to set the HotelId as loop element in the XML Tree structure of tAdvancedFileOutputXML.

 

hiba1
Contributor
Contributor
Author

Hi @Shicong Hong​ ,

 

thanks for reply . you help me.

 

i have up to 300000 hotelId, my question is how can i have each 500 hotelId in one file.

 

this is my job :

0693p00000BBrEZAA1.png 

Thanks.