Skip to Content
0
Nov 02, 2012 at 09:07 AM

Adding new record as a Tag using XSLT Mapping

251 Views

Hi Gurus,

I have the following Source Structure:

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

test.com:Test">

<row>

<ID>10</ID>

<Name>John10</Name>

<City>Chicago10</City>

</row>

<row>

<ID>20</ID>

<Name>John20</Name>

<City>Chicago20</City>

</row>

</ns0:MTS>

I need the following Target Structure with extra once new record whenver it process:

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

test.com:Test">

<row>

<ID>ID</ID>

<Name>Name</Name>

<City>City</City>

</row>

<row>

<ID>10</ID>

<Name>John10</Name>

<City>Chicago10</City>

</row>

<row>

<ID>20</ID>

<Name>John2</Name>

<City>Chicago2</City>

</row>

</ns0:MTS>

I came to know that XSLT mapping good to do this job.

Please send me the XSLT code for the same OR any other method using UDF or any method..

I have seen the below link it is good but i am new to XSLT Maping.

http://scn.sap.com/thread/1205781.

Regards,

Sreeni.