Skip to Content
avatar image
Former Member

Conversion from txt to xml

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


Advit Ramesh (483 B)
Capture.PNG (16.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 11, 2014 at 02:49 PM

    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'.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.


      Advit Ramesh