• Index
  •  » Usage, Operation
  •  » [resolved] List the file content of a folder and put the results in an XML file

Post a reply

Write your message and submit

Options

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

jkrfs
2010-02-22 16:06:20

Thanks shong! This helped me too for a FTP Listing.

braberyx
2009-11-18 11:37:24

Thanks for such a quick reply. I really do appreciate.

shong
2009-11-17 13:53:51

Hello guy
It is very easy to finish your requirement with talend ETL tool.smile
Please see my job.

out.xml:
<?xml version="1.0" encoding="ISO-8859-15"?>

<files>
  <file>
    <filename>forum8781.zip</filename>
  </file>
  <file>
    <filename>function.js</filename>
  </file>
  <file>
    <filename>in.csv</filename>
  </file>
  <file>
    <filename>Inna.doc</filename>
  </file>
  <file>
    <filename>log.xml</filename>
  </file>
  <file>
    <filename>out.csv</filename>
  </file>
  <file>
    <filename>out.xml</filename>
  </file>
  <file>
    <filename>stat.xml</filename>
  </file>
  <file>
    <filename>test.csv</filename>
  </file>
</files>

Best regards

          shong

braberyx
2009-11-17 13:12:09

Dear all,

I am required to list the file content of a folder and put the results in an XML file as follow:

<?xml version="1.0" encoding="UTF-8"?>
<files>
<file>
<filename>filename 1</filename>
</file>
<file>
<filename>filename 2</filename>
</file>
<file>
<filename>filename 3</filename>
</file>
</files>

How can i do that in talend? Which components do i need to use? Do you have relevant links/urls to a solution?

Or can i do the folder reading and xml creation in java and link the java program to talend job? I need to generate this xml file before sending it to a FTP server

Thanks for the help

Board footer

Powered by FluxBB