Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
martel
Creator
Creator

how add values into a file xml in the good place ?

Hello all,

i try to insert some values into xml file in the good placement.

1)

i have a xml file with informations; (generate by tFileList_1 -> tFileInputXML_1 -> tAdvancedFileOutputXML_1) OK

2)

i have some values header (UUID and CurDate); this values want insert in one place xml element. (generate previously with tjava_1) OK

now i need insert the UUID and CurDate into file xml : (see structure)

<voucher>

<voucherID> HERE THE UUID </voucherID>

<timestamp> HERE THE CurDate

</timestamp>

<files>

<file> <filename>xxxxxx</filename> </file>

<file> <filename>yyyyyyyy</filename> </file>

<file> <filename>zzzzzzzz</filename> </file>

</files>

</voucher>

have you a nice explain idea ?

I dont want do all in javaRow, it is possible with the component talend ?

 

0693p000009IWe2AAG.jpg

 

0693p000009IWe7AAG.jpg

 

thanks

 

a lot.

Labels (2)
1 Reply
Anonymous
Not applicable

Hi

Add a tMap between tFileInputXML and tAdvancedOutputXML, add new columns in the output table of tMap, and set their values using the context variables.

 

Regards

Shong