Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Loko
Creator II
Creator II

[resolved] TXMLMap : how to loop on XML Content ?

Hi

I have a tXMLMap that gets an Webservice response thru ESBConsumer. The WS is made with Talend and its reponse is :


<?xml version="1.0" encoding="UTF-8"?>
<tns:getChatsByNomResponse xmlns:tns=""><chats><chat id_chat=""><nom_chat>Garfield</nom_chat><age_chat>5</age_chat><pelage_chat>Tigré</pelage_chat></chat><chat id_chat=""><nom_chat>Tom</nom_chat><age_chat>3</age_chat><pelage_chat>Brun</pelage_chat></chat></chats></tns:getChatsByNomResponse>


Then , whatever the output I choose for tXMLMap (tLogRow, tFileOutPutExcel ...) I only get the first row of data. Here is my map

0683p000009MFlY.png

I also tried to output a document with a loop like this map

0683p000009MFo2.png

but in this case I just get the entire raw document as output, not parsed into columns.

What do I miss to loop on rows ?

Thank you
Loko
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi Loko,
The Loop must be in "chat" and not in "chats"

Lachmiter

View solution in original post

3 Replies
Anonymous
Not applicable

Hi 
What's the result you are getting now? Is tXMLMap2 a component in web service provider job or in the consumer job?

Regards
Shong
Anonymous
Not applicable

Hi Loko,
The Loop must be in "chat" and not in "chats"

Lachmiter
Loko
Creator II
Creator II
Author

Hi

You're right Lachmiter, I didn't notice the loop was not on the right level. It's a bit surprising as this input schema was directly recovered from the Webservice WSDL.

Thanks for your help !
Loko