cancel
Showing results for 
Search instead for 
Did you mean: 

Add an extra line in the output xml file

Former Member
0 Kudos

Dear All

My scenarios is idoc to xml file.For the resultant xml file i have to append a line <?Test Line?> after

<?xml version="1.0" encoding="UTF-8" ?> while passing it to legacy system ?

How generate such a xml file in xi?

Any help would be appreciated

Thanks and regards

uday

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

this can also be achived using Message mapping .

just create an extra field in the target structure and map it

rajasekhar_reddy14
Active Contributor
0 Kudos

There is two ways to achieve this one

1)Use XSLT Map and add it.

2)Use regular expression you can add extra line where ever you want.

write one user defined function add regex statement.

search in google for documentation abt regular expressions.

cheers,

raj

Shabarish_Nair
Active Contributor
0 Kudos

use a simple java mapping and add the extra line as you want.

Other option would be a module, but java mapping is much easier.

Former Member
0 Kudos

Dear All

my requirement is to generate an xml file which looks similar to

<?xml version="1.0" encoding="UTF-8"?>

<?TestLine?>

<test_mt>

<field1>123</field1>

<field2>234</field2>

</test_mt>

how to add <?TestLine?> tag?

Hi shabrasish and rajashekar

i am new to java and xslt mapping can you guide me or give me links which are similar to my requirement how to proceed with this kind of mapping

thanks

uday