on 11-02-2012 9:07 AM
Hi Gurus,
I have the following Source Structure:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MTS xmlns:ns0="urn: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"?>
<ns0:MTS xmlns:ns0="urn: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.
If you know the list of field names in design time, then you can simply duplicate the target structure with values in the first occurrence of the target node is populated with the field names. Second occurence can be used to map the actual data. No XSLT
Warm Regards,
Karthik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.