on 09-07-2011 7:32 AM
Hi Users,
My source structure is
<Start>
<First>
</pos>
</hip>
</chr>
</FIRST>
</Start>
My Target structure is
<Root>
<shipment>
</value1>
</value2>
<LineItem>
</L1>
</L2>
</LineItem>
</Shipment>
</Root>
Source Test data :First one
<Start>
<First>
<POS>10</POS>
</FIRST>
<First>
<POS>20</POS>
</FIRST>
<First>
<POS>90000</POS>
<HIP>10</HIP>
<Chr>101</Chr>
</FIRST>
<First>
<POS>90001</POS>
<HIP>20</HIP>
<Chr>102</Chr>
</FIRST>
</Start>
Source Test data :First one
<Start>
<First>
<POS>10</POS>
</FIRST>
<First>
<POS>20</POS>
</FIRST>
<First>
<POS>90000</POS>
<HIP>10</HIP>
<Chrg>101</Chr>
</FIRST>
<First>
<POS>90001</POS>
<HIP>20</HIP>
<Chr>102</Chr>
</FIRST>
</Start>
Source Test data :Second one
<Start>
<First>
<POS>10</POS>
<Chr>101</Chr>
</FIRST>
<First>
<POS>20</POS>
<Chr>102</Chr>
</FIRST>
</Start>
As per first test data LineItem is created based on HIP values .
As per the Second test data LineItem is created based on Chr value, if no HIP values in whole test data.
Hello,
Can you please wrote down here your expected target structure based on this two test cases..it will helpus to understand your clear requirement.
you can do this using ifelse condition but i did not get clear idea of your requirement so please provide us so we can give you proper solution.
Monica
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.