#1 2009-03-27 20:17:14

tnewman
Member
Company: Lunexa
Registered: 2008-11-15
Posts: 194
Website

xml tfileinputXML question

Tags: [loop, tis, xml]

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


Uploaded Images


------------------
Talend Version - TIS 4.1.2
Generated Code - Java
OS - WinXP SP3 / Linux

Offline

#2 2009-03-28 03:52:54

shong
Talend team
Registered: 2007-08-29
Posts: 10357
Website

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


Uploaded Images


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2009-03-28 15:22:59

tnewman
Member
Company: Lunexa
Registered: 2008-11-15
Posts: 194
Website

Re: xml tfileinputXML question

Hi Shong,

Thanks that worked.

I really appreciate your help!


------------------
Talend Version - TIS 4.1.2
Generated Code - Java
OS - WinXP SP3 / Linux

Offline

#4 2009-04-15 18:39:42

vinhsu
Member
Registered: 2008-04-15
Posts: 27

Re: xml tfileinputXML question

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

Offline

#5 2009-04-16 04:34:16

shong
Talend team
Registered: 2007-08-29
Posts: 10357
Website

Re: xml tfileinputXML question

Hello vinhsu

vinhsu wrote:

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


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#6 2010-12-23 00:12:41

Frank Blau
Guest

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?

#7 2011-05-18 00:04:25

fmh
New member
Registered: 2011-05-03
Posts: 4

Re: xml tfileinputXML question

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

Offline

Board footer

Powered by FluxBB