on 09-24-2009 2:13 PM
Hello!
I have simple structure:
<mt1>
<element>
<key>1</key>
<key2>xxx</key2>
</element>
<element>
<key>2</key>
<key2>yyy</key2>
</element>
</mt1>
Where element is unbounded. <key> maybe only "1" or "2".
I need the target structure as:
<mt2>
<e1>
<key>1</key>
<key2>xxx</key2>
</e1>
<e2>
<key>2</key>
<key2>yyy</key2>
</e2>
</mt2>
e1 or e2 node depends on <key>.
I'm trying to map <element>, <key>, <key2> using IfThen (if <key> EqualS to Const(1)) but it doesn't working properly.
key--->then
key---->removeContext-->equalS--->IfWithoutElse---->e1
constant[1]/
key--->then
key---->removeContext-->equalS--->IfWithoutElse--->splitByValue(eachValue)->key(Target)
constant[1]/
key--->then
key---->removeContext-->equalS--->IfWithoutElse---->e2
constant[2]/
key2--->then
key---->removeContext-->equalS--->IfWithoutElse--->splitByValue(eachValue)-->key2
constant[2]/
occurence of e1 and e2 should be 0---unbounded
Edited by: Kubra fatima on Sep 24, 2009 3:38 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andrey,
Please check my response in your other post. I've tested it, but if your structure is different, kindly let me know.
Hope this helps,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andrey,
Just map the source side element node to e1 node in the target side. (here target side e1 node is o or 1 to unbound)
Remaining mappings as usual, like key> key and Key2> key2.
Regards
Ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.