on 11-21-2011 5:01 PM
Hi Group,
In the Incoming file I have 10 filelds,in the target I need to map 5 source fields to 5 target fields
for another 5 fields I need to map to one target field with 5 times repeating that tag:
for ex: Source
<SRC>
<HSD1> 11</HSD1>
<HSD2> 12</HSD2>
<HSD3> 13</HSD3>
<HSD4> 14</HSD4>
<HSD5> 25</HSD5>
<HSD6> 26</HSD6>
<HSD7> 27</HSD7>
<HSD8> 28</HSD8>
<HSD9> 29</HSD9>
<HSD10> 30</HSD110>
</SRC>
Target:
<TRG>
<HTD1> 11</HTD1>
<HTD2> 12</HTD2>
<HTD3> 13</HTD3>
<HTD4> 14</HTD4>
<HTD5> 25</HTD5>
<VAL>26</VAL>
<VAL>27</VAL>
<VAL>28</VAL>
<VAL>29</VAL>
<VAL>30</VAL>
Can any body suggest how can achieve this
Regards,
Rajiv
Map first five fields from source to target as one to one. for next 5 fields, Use duplicate subtree to store different values of source field to target
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhaskar,
its helpful answer,my problme is solved,I have one general query if we have the reverse scenario like the below
how we will get the result:
Source is:
Target:
<TRG>
<HTD1> 11</HTD1>
<HTD2> 12</HTD2>
<HTD3> 13</HTD3>
<HTD4> 14</HTD4>
<HTD5> 25</HTD5>
<VAL>26</VAL>
<VAL>27</VAL>
<VAL>28</VAL>
<VAL>29</VAL>
<VAL>30</VAL>
Target:
----
<SRC>
<HSD1> 11</HSD1>
<HSD2> 12</HSD2>
<HSD3> 13</HSD3>
<HSD4> 14</HSD4>
<HSD5> 25</HSD5>
<HSD6> 26</HSD6>
<HSD7> 27</HSD7>
<HSD8> 28</HSD8>
<HSD9> 29</HSD9>
<HSD10> 30</HSD110>
</SRC>
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.