cancel
Showing results for 
Search instead for 
Did you mean: 

Java mapping to transform input xml

Former Member
0 Kudos

Hi,

I have to transform the my xml like below and need Java Mapping code. I am trying to push data to MDM. Any help would be appreciated.

Input:

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

<ns0:ZMDM_Contact_Unique xmlns:ns0="urn:sap-com:document:sap:rfc:functions">

   <Customer_Ins>

      <FirstName/>

      <LastName/>

      <Address>

      <Zip/>

       <Age/>

   </Customer_Ins>

</ns0:ZMDM_Contact_Unique>

Output:

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

<Customer_Uni>

     <FirstName></FirstName>

     <LastName></LastName>

     <Address></Address>

     <Zip></Zip>

     <Age><Age/>

</Customer_Uni>


Accepted Solutions (1)

Accepted Solutions (1)

nabendu_sen
Active Contributor
0 Kudos

Hi Nayan,

This is very common requirement. Please refer the below blog. I think Anupam Ghosh has provided a same type of code.

Please let us know if you need any more details:http://scn.sap.com/message/13727430#13727430

Former Member
0 Kudos

Oh Ghosh,

Just the same requirement. Thanks.

Answers (0)