Quantcast
Channel: BizTalk Server General Forum
Viewing all articles
Browse latest Browse all 872

Mapping sequential input to hierarchical output

$
0
0

I have  mapping requirement of which I'm not sure can be done with functoids, maybe someone knows how to do it.

The input is about articles, colors and sizes. In the sample below 'Record1' is an article, 'Record2' represents a color and 'Record3' are the sizes.  The number of colors and sizes (record2 and record3) elements can vary.

<root><Record1>...</Record1><Record2>...</Record2><Record3>...</Record3><Record3>...</Record3><Record2>...</Record2><Record3>...</Record3><Record3>...</Record3><Record3>...</Record3><Record3>...</Record3><Record1>...</Record1><Record2>...</Record2><Record3>...</Record3><Record3>...</Record3><Record2>...</Record2><Record3>...</Record3><Record3>...</Record3><Record3>...</Record3><Record3>...</Record3></root>

All fields are on the same hierarchical level, but still I have to create this structure as output:

<root><article><color><size>...</size><size>...</size><size>...</size></color><color><size>...</size><size>...</size></color></article><article><color><size>...</size><size>...</size><size>...</size></color><color><size>...</size><size>...</size></color></article></root>

I think I have to use some custom XSLT, but maybe some mapping guru can help me out with only functoids.

Thanks in advance!


Jean-Paul Smit | Didago IT Consultancy
Blog | Twitter | LinkedIn
MCTS BizTalk 2006/2010 + Certified SOA Architect

Please indicate "Mark as Answer" if this post has answered the question.


Viewing all articles
Browse latest Browse all 872

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>