Two different mappings to ONE XML output file

John

I'm working on a talend job where I have a excel file and a couple of database fields that gets mapped to an XML file.

The working job looks like this:

enter image description here

Problem: I want to, with the same input of the excel file and the database fields, make another mapping that outputs to the same working XML file mentioned ealier. So I will have ONE XML file with TWO different mappings. How can I achieve this?

Update I have done this mapping: enter image description here

which in the end gets exported like this: enter image description here

but I'm unsure on how to use this mapping in the tAdvancedFileOutputXML

Neo

If I understood correctly, you want to have a single XML file containing two different XMLs (the second one appended to the first one). In the shown Job add a OnSubJobOk link to point to a duplicate of your document flow which has a different mapping. In the second flow rather than using tFileOutputXML component to write the XML file, you can use the tAdvancedFileOutputXML with Append Source XML File marked to add to the file generated from the first flow. Also make sure to configure the XML tree. Check the following link for further information https://help.talend.com/reader/~hSvVkqNtFWjDbBHy0iO_w/h3wZegFH1_1XfusiUGtsPg

tAdvancedFileOutputXML

Hope this helps.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Search in two different types with different mappings in Elasticsearch

Merge the output of two greps into one file

Knit one markdown file to two output files

How to extract two different nodes of an XML file

git for two applications with one different file

access one file by two different names

Edit one file in two different buffers in emacs

Replace (one or) two different patterns in a file with regexp

Combine two files of different lengths into one file

Using one xml file to load different activities

Is it possible to define different rotations in one xml file?

compare two column of two different CSV file & merge the output

Handle two XML files with one schema file

Keras, Tensorflow : Merge two different model output into one

output of two different queries as one result in oracle SQL

Two file uploads in two different forms on one page

ggplot2: having one legend for two mappings

How to save in two columns of the same file from different output in bash

How to extract specific columns from different files and output in one file?

Extracting two pieces of data from one file and inserting them into two different places of a different file

two processes write to one file, prevent mixing the output

Write to file output of two commands running together in one terminal

XSLT read from two different sources (XML file and Excel sheet)

Convert two different dataframes to one json file using pandas

How to grep two patters in different lines of one file, recursively in subfolders?

How to write two dataframes in different functions into one excel file in django

How to merge one column from two different file using awk

Create two separate log file from one handler with different levels

How to parse different roots from Xml file in one column in database?