Page 1 of 1

How to load txt file into XML file

Posted: Tue Feb 26, 2008 5:54 am
by mohandl
Hi all,

My requirement is to load txt file into XML file ,if any one knows please explain me the steps.

Thx and Regards,
Mohan

Posted: Tue Feb 26, 2008 6:01 am
by ray.wurlod
Set up the XML metadata first. You may wish to use a style document, you may wish to edit the XML metadata manually to specify namespaces and the paths that describe the XML structure.

Read the text file with a Sequential File stage, pass it through a Transformer stage (so you can Monitor), then through an XML Output stage and then whatever you want to do with the XML.

Posted: Tue Feb 26, 2008 6:01 am
by ArndW
That is a very vague question. In the simplest case you can map straight from text file to XML. Could you post what you have tried already and which problem you have encountered?