AnsweredAssumed Answered

How to Map one to many XML elements?

Question asked by HaroonBarlas1631 on Nov 1, 2012
Latest reply on Nov 2, 2012 by HaroonBarlas1631
I want to map one XML profile to another one, however the destination profile has a section which needs to be repeated.

For example in my source profile I have the following XML:

<Record>
     <Type>Incident</Type>
     <SubType>Network related</SubType>
</Record>

And in my destination profile I need this to map as follows:

<Categories>
     <Category>
     <CategoryType>Process</CategoryType>
     <CategoryContents>Incident</CategoryContents>
     </Category>
     <Category>
     <CategoryType>SubProcess</CategoryType>
     <CategoryContents>Network related</CategoryContents>
     </Category>
</Categories>

Here I want to create a <Category> section for <Type> and a <Category> section for <SubType>

How do I do this one-to-many XML mapping?

Outcomes