[resolved] MSXML processing different loops problem

One Star

[resolved] MSXML processing different loops problem

Hi all,
I need to convert XML file with 2 different loops on the same level. I've tried to use tFileInputMSXML and tFileOutputMSXML for it. I was able to get all required data using tFileInputMSXML, but I couldn't connect different tFileInputMSXML outputs to single tFileOutputMSXML.
I have following input xml structure:
<strName>Key 0171 Warm Sands Cool Water</strName>
...other general properties...
....other images....
....other rates....
and I want to get similar output xml.
Could you explain me hoe could I put results of these 3 schema to single XML output file ?
I've attached pictures with tFileInputMSXML and testing job.
Community Manager

Re: [resolved] MSXML processing different loops problem

You are not allowed to create a Job with multiple paths from a single source to the same target, see
In this case, you can store the result into a temporary file or memory with tHashOutput file first. In next subjob, using tFileInputDelimited or tHashInput to read back the data from a file or memory. For example:
tHashInput_1(link with tHashOutput_1)---main----tFileOutputMSXML
tHashInput_2(link with tHashOutput_1)---main----
tHashInput_3(link with tHashOutput_1)---main----

Talend | Data Agility for Modern Business
One Star

Re: [resolved] MSXML processing different loops problem

Hi Shong, thanks for your answer. You have a small typo - each tHashInput should be linked with appropriate tHashOutput, not with tHashOutput1.
I've attached screenshot of my job.
I've tried this job with trigger OnSubjobOk and without it, in both cases it works fine. Could you tell me why have I got the same results ?
And one more question - I could connect OnSubjobOk trigger to only one tHashInput component, does it mean that all 3 tHashInput components would be synchronized with this single trigger or there is a way to connect OnSubJobOk trigger to each tHashInput component ?
Community Manager

Re: [resolved] MSXML processing different loops problem

The three tHashInput components and tFileOutputMSXML constitutes a subjob, you have two subjobs in this job.



Talend | Data Agility for Modern Business
One Star

Re: [resolved] MSXML processing different loops problem

i am having another concern can you please check this one as well.
<?xml version="1.0" encoding="UTF-8"?>
<Customers xmlns:xsi=""
    <Customer id="1">    
        <CustomerName>Griffith Paving and Sealcoatin</CustomerName>
            <CustomerAddress>talend apres 91</CustomerAddress>
            <CustomerAddress>511 Maple Ave. Apt. 1B</CustomerAddress>
            <CustomerAddress>1799 Rosemary Way</CustomerAddress>
            <CustomerAddress>1859 Green Bay Rd.1</CustomerAddress>
    <Customer id="2">
        <CustomerName>Bill's Dive Shop</CustomerName>
            <CustomerAddress>310 Walker Ave.</CustomerAddress>
            <CustomerAddress>844 Spruce St.</CustomerAddress>
            <CustomerAddress>965 Marion Place Apt. 65C</CustomerAddress>
            <CustomerAddress>511 Hill</CustomerAddress>

i am having the above xml file and i want the output like 
id  name
1   Griffith Paving and Sealcoatin 
2   Bill's Dive Shop
i am using t fileinputMSXML with the
root Xpath Query : "/Customers"
schema Xpath Loop :"/Customer"
Xpath Queries :"@id","../CustomerName"
but it is giving output as 
Any help.

Thanks in advance.
One Star

Re: [resolved] MSXML processing different loops problem

It resolved now.

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.



Introduction to Talend Open Studio for Data Integration.


Downloads and Trials

Test drive Talend's enterprise products.