cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion from txt to xml

Former Member
0 Kudos

Hello Experts,

I have a scenario where in I have to convert the content in txt file to xml format .

I have just used one field as I intend to just convert the data directly .I have attached the text file as well . I am facing problems as PI cannot consider the entire content as one field.Please suggest other ways to achieve this .

Thanks in advance

Regards

Advit Ramesh

Accepted Solutions (0)

Answers (1)

Answers (1)

Harish
Active Contributor
0 Kudos

Hi Ramesh,

I would suggest to pick the file and each line will split in different element. change the occurrence of Header or field A to unbounded. and change the field separator to '\n'.

regards,

Harish

Former Member
0 Kudos

Hi Harish

     Thanks for responding.I was able to get the desired output through java mapping.I ll try you scenario and I ll get back if there are any issues.

Regards

Advit Ramesh