BizTalk Server General - Looping and Combining Different Nodes/Elements into Single Node

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > December 2005 > Looping and Combining Different Nodes/Elements into Single Node





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Looping and Combining Different Nodes/Elements into Single Node
Ayron

2005-12-02, 5:51 pm

Greetings. I have a scenario where I need to combine different segments
of an inbound document into a single loop of output nodes. For example,
I need to convert the following document into the one below it.

<root>
<sectionA>
<sectionB>
<widget value="blue">ALPHA</widget>
<widget value="green" />BRAVO</widget>
</sectionB
<sectionB>
<widget value="yellow" />CHARLIE</widget>
</sectionB>
</sectionA>
<section1>
<section2>
<thing value="magenta" />DELTA</thing>
</section2>
</section1>
</root>

<root>
<output value="blue">ALPHA</output>
<output value="green" />BRAVO</output>
<output value="yellow" />CHARLIE</output>
<output value="magenta" />DELTA</output>
</root>

The problem that I'm having is the scope link using a table looping
functiod. I thought I could use two separate table looping functoids
which would provide two different scopes: one scope on the "widget"
element and the other on the "thing" element. But, this didn't seem to
work. Any thoughts or suggestions?

Thanks.

-ak

david.liu@sunaptic.com

2005-12-02, 5:51 pm

Using Looping functiod, not table looping functiod.

For more infor, check this link:

http://msdn.microsoft.com/library/d...oncept_mjvl.asp



Ayron wrote:
> Greetings. I have a scenario where I need to combine different segments
> of an inbound document into a single loop of output nodes. For example,
> I need to convert the following document into the one below it.
>
> <root>
> <sectionA>
> <sectionB>
> <widget value="blue">ALPHA</widget>
> <widget value="green" />BRAVO</widget>
> </sectionB
> <sectionB>
> <widget value="yellow" />CHARLIE</widget>
> </sectionB>
> </sectionA>
> <section1>
> <section2>
> <thing value="magenta" />DELTA</thing>
> </section2>
> </section1>
> </root>
>
> <root>
> <output value="blue">ALPHA</output>
> <output value="green" />BRAVO</output>
> <output value="yellow" />CHARLIE</output>
> <output value="magenta" />DELTA</output>
> </root>
>
> The problem that I'm having is the scope link using a table looping
> functiod. I thought I could use two separate table looping functoids
> which would provide two different scopes: one scope on the "widget"
> element and the other on the "thing" element. But, this didn't seem to
> work. Any thoughts or suggestions?
>
> Thanks.
>
> -ak


Pabba

2005-12-02, 5:51 pm

Ayron,

Use Looping functoid, link source "sectionB/widget" node &
"section2/thing" node to the Looping functoid as input and then link
the Looping functoid to target "output" node.
This single Looping functoid links should work properly since both
source nodes, widget & things are at the same level.

Regards,
Kiran Pabba

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com