Biztalk maps: Grouping different nodes into a list

Posted by pablocastilla on Stack Overflow See other posts from Stack Overflow or by pablocastilla
Published on 2010-04-16T16:01:51Z Indexed on 2010/04/20 14:33 UTC
Read the original article Hit count: 297

Hello,

Is there a way of achieve the following transformation in the BT mapper? if not, any smart idea?

<Person>
<Age>25</Age>
<Name>Paul</Name>
</Person>

to:

<Person>
<CustomProperties>
<CustomProperty>
<Name>Age</Name>
<Value>25</VAlue>
</CustomProperty>
<CustomProperty>
<Name>Name</Name>
<Value>Paul</VAlue>
</CustomProperty>
</CustomProperties>

I have to aggregate a few elements in a list of nodes.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about BizTalk

Related posts about biztalk-mapper