Looping and Combining Different Nodes/Elements into Single Node
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > Looping and Combining Different Nodes/Elements into Single Node




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Looping and Combining Different Nodes/Elements into Single Node  
Ayron


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-02-05 10: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






[ Post a follow-up to this message ]



    Re: Looping and Combining Different Nodes/Elements into Single Node  
david.liu@sunaptic.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-02-05 10: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






[ Post a follow-up to this message ]



    Re: Looping and Combining Different Nodes/Elements into Single Node  
Pabba


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-02-05 10: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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:29 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register