Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
uzix
Creator

merge xml files - maintain same structure

Hi all,

im having some dificulties on the best way to achieve this:
merge several xml files , all files have the same structure.

file1.xml:
<root>
  <p-list>
    <p>
      <PID>8</PID>
      <URL>ww</URL> 
    </p>
  </p-list>
</root>
 
file2.xml
<root>
  <p-list>
    <p>
      <PID>9</PID>
      <URL>ww</URL> 
    </p>
  </p-list>
</root>
.......the objective is to merge about 14 xml files .

 final file :
<root>
  <p-list>
    <p>
      <PID>8</PID>
      <URL>ww</URL> 
    </p>
    <p>
      <PID>9</PID>
      <URL>ww</URL> 
    </p>
  </p-list>
</root>

after some tests i donwloaded from talend kb : https://help.talend.com/search/all?query=Append+the+source+XML+file+feature&content-lang=en-US
and since the job in the example has the group element and loop element defined, i changed it to my needs and know im able to produce the file i need .

Labels (2)
1 Reply
Anonymous
Not applicable

Hi,
We see your topic is set as resolved. Feel free to let us know  if you still have the problem.
Best regards
Sabrina