Hi Ravi,
As previous SCN members said your case is a typical case for file content conversion, check this page Converting Text Format in the Sender File/FTP Adapter to XML - Advanced Adapter Engine - SAP Library to know what you can do and the format that the target file can have.
If your target XML file is not hierarchical complex you can do it in one shoot.
Regards.