on 04-07-2006 2:23 PM
Hi
I need to map a sub-tree that occurs n times on exactly the same sub-tree in another structure (also occurs n times where n1 = n2).
When I test my mapping it only creates the first sub-tree and igonres the rest. Is there anything special that I need to be aware of?
Thanks a lot,
Nana
Hi Nana,
Check if the parent node of the sub-node getting as many times as it needs to, so that it capacitates n occuerrences of the sub-node.
Please provide ur src and tgt strucctures for more clarity.
praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The parent node is the root node and as such has no occurens. Does that matter?
Just for illustration...
The source and target structure looks as follows:
<root>
<sub1>[occurs: 1]</sub1>
<sub2>[occurs: 0..unbound]</sub2>
<root>
Now if I map the source wit two <sub2> on the target, I only get one <sub2> structure.
HI Nana,
<i>*****Now if I map the source wit two <sub2> on the target, I only get one <sub2> structure</i>
You mean to say, you have two Sub2 structures in the Target ??? Like this
<root>
<sub1>[occurs: 1]</sub1>
<sub2>[occurs: 0..unbound]</sub2>
<sub2>[occurs: 0..unbound]</s
<sub2>
What I understood is you have source with 1 sub2 node and you need to generate multiple sub2 node based on the soure occurence. If so try with context change,SPlitBy Value concepts.
Also make sure that your target occurence of sub2 node is 0-unbounded.
Inorder to get the all the field values under sub2 node, you may need to write small user defined function stating that for each values of sub2 , generate all these values of current sub2 node,
Hope this helps.
Regards,
Moorthy
Hi Nana,
Check that your subtree is occuring as many time as your parent node..
If not try with change the context of Source Subtree into Message level and check it if it generates as many as in the source.
SO your mapping will be
Source->(COntext changed to Message Level)->SplitByValue->Target
Just to get into more-
/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
Just try it..
May be useful.
Regards,
Moorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.