How to map elements from different levels?
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 Orchestration > How to map elements from different levels?




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

    How to map elements from different levels?  
Bambitroll


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


 
05-29-06 10:21 PM

I have to map 2 elements which are not at the same level in the 2 XSD
files.
The incoming XSD (A) looks like this:
Level1
...Level2
......Element1
......Element2

The outgoing XSD (B) is like this:
Level1
...Level2
......Level 3
.........Element1
.........Element2


So as you can see, the end structure is the same but there is one more
level.
My problem is that if I map A.element1 to B.element1 and A.element2 to
B.element2
I get all in only one Level3 element like this:
<Level1>
...<ns0:ListOfScheme>
......<ns0:Scheme>
.........<ns0:Name>101</ns0:Name>
.........<ns0:Name>202</ns0:Name>
.........<ns0:ManHourRate>100</ns0:ManHourRate>
.........<ns0:ManHourRate>200</ns0:ManHourRate>
......</ns0:Scheme>
...</ns0:ListOfScheme>
</Level1>

Instead of what I want which is this:
<Level1>
...<ns0:ListOfScheme>
......<ns0:Scheme>
.........<ns0:Name>101</ns0:Name>
.........<ns0:ManHourRate>100</ns0:ManHourRate>
......</ns0:Scheme>
......<ns0:Scheme>
.........<ns0:Name>202</ns0:Name>
.........<ns0:ManHourRate>200</ns0:ManHourRate>
......</ns0:Scheme>
...</ns0:ListOfScheme>
</Level1>


Do you have any ideas/hints how I could make this work, or even if it
is possible at all?

Thx a lot!






[ Post a follow-up to this message ]



    Re: How to map elements from different levels?  
Bambitroll


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


 
05-30-06 12:15 PM

Don't bother, I think I found the answer to this one...
It looks like if I change the XSD and play around a bit with the "Group
Max Occurs" for the receiving element and set it to 1, it forces the
mapper to generate one Level 3 entry each time I have new element1&2


BT.

Bambitroll wrote:
> I have to map 2 elements which are not at the same level in the 2 XSD
> files.
> The incoming XSD (A) looks like this:
> Level1
> ...Level2
> ......Element1
> ......Element2
>
> The outgoing XSD (B) is like this:
> Level1
> ...Level2
> ......Level 3
> .........Element1
> .........Element2
>
>
> So as you can see, the end structure is the same but there is one more
> level.
> My problem is that if I map A.element1 to B.element1 and A.element2 to
> B.element2
> I get all in only one Level3 element like this:
> <Level1>
> ...<ns0:ListOfScheme>
> ......<ns0:Scheme>
> .........<ns0:Name>101</ns0:Name>
> .........<ns0:Name>202</ns0:Name>
> .........<ns0:ManHourRate>100</ns0:ManHourRate>
> .........<ns0:ManHourRate>200</ns0:ManHourRate>
> ......</ns0:Scheme>
> ...</ns0:ListOfScheme>
> </Level1>
>
> Instead of what I want which is this:
> <Level1>
> ...<ns0:ListOfScheme>
> ......<ns0:Scheme>
> .........<ns0:Name>101</ns0:Name>
> .........<ns0:ManHourRate>100</ns0:ManHourRate>
> ......</ns0:Scheme>
> ......<ns0:Scheme>
> .........<ns0:Name>202</ns0:Name>
> .........<ns0:ManHourRate>200</ns0:ManHourRate>
> ......</ns0:Scheme>
> ...</ns0:ListOfScheme>
> </Level1>
>
>
> Do you have any ideas/hints how I could make this work, or even if it
> is possible at all?
>
> Thx a lot!






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:57 PM.      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