One Star

xml tfileinputXML question

Hi,
I am new to xml and have looked through other posts.
I have setup an xml input as shown in the image but when I preview the file I only get one equipment value returned instead of all of them.
I am using TIS 2.4.1
6 REPLIES
Community Manager

Re: xml tfileinputXML question

Hello
If you want to get all the values of Equipment element, you need to set Equipment element as loop element. see screenshot.
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: xml tfileinputXML question

Hi Shong,
Thanks that worked.
I really appreciate your help!
One Star

Re: xml tfileinputXML question

Hi, How do I use this component? is it the "tAdvanceFileOutputXML"? Thank you.
Community Manager

Re: xml tfileinputXML question

Hello vinhsu
Hi, How do I use this component? is it the "tAdvanceFileOutputXML"? Thank you.

tFileInputXML is used to extract data from a xml file, and tAdvanceFileOutputXML is used to output data to a xml file. About the basic usage, please read the user documentation.
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: xml tfileinputXML question

this still does not work for me.
I have
<componentList>
<componentItem name="aaa">
<componentItem name="bbb">
<componentItem name="ccc">
<componentItem name="ccc">
</componentList>
I put componentList as the xPath and @name as the expression.
It still only retrieves one row, "xxx".
Any thoughts?
One Star fmh
One Star

Re: xml tfileinputXML question

Hello Frank Blau,
i think your loop-xpath is "componentList/componentItem", not componentList.