cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Logic Required

Former Member
0 Kudos

Dear,

My source XML:

<Sender>
<Field1><![CDATA[<Details><Name>Val1</Name><Location>Val2</Location></Details>
]]>

OR (can come any of the two)

<Sender>
<Field1>
<Details>
<Name>Val1</Name>
<Location>Val2</Location>
</Details>
</Field1>
</Sender>

How should I develop the XSLT mapping (need to update an existing XSLT) which will solve the above requirement? I need a code which will be independent of the number of fields present within Details tag.

Thank you!

Accepted Solutions (1)

Accepted Solutions (1)

anupam_ghosh2
Active Contributor
0 Kudos

Hi Pankaj,

your requirement is not clear. Could you please kindly, if possible, post the target XML structure for each of the source XML you have already posted. Secondly please let us know the version of PI you are working on. This is because a java mapping solution might be easier in your case. java mapping solutions depend on PI version you are using.

regards

Anupam

Answers (0)