on 06-12-2007 3:31 PM
Hi,
I am doing message mapping where my source structure is
<root>
<EmpCount>2</EmpCount>
<Emp>
<item>
<code>1</code>
<name>ABC</name>
</item>
<item>
<code>2</code>
<name>PQR</name>
</item>
</Emp>
<root>
If EmpCount is having value 2 then Emp node will have only 2 items
Target structure is flat structure like (something like fix file format)
<root>
<EmpData>EmpDetails</EmpData> occurrences 0...unbounded
</root>
With above sources data following is expected target sturcure
<root>
<EmpData>2ABC</EmpData>
<EmpData>3PQR</EmpData>
</root>
Here my query is how I can create more than one node to target structure with employee details.
I already tried with following
This help to get all 2 nodes of EmpData in target structure but it is showing only First value in both nodes. Following is output I am getting
<root>
<EmpData>2ABC</EmpData>
<EmpData>2ABC</EmpData>
</root>
Sunil,
Please see the sample i/p and o/p payload. Also please let me know , is this the same u are looking for
I/P
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Check xmlns:ns0="urn:hdmc:samplescenarios">
<EmpCount>2</EmpCount>
<Emp>
<Item>
<Code>1</Code>
<Name>A</Name>
</Item>
<Item>
<Code>1</Code>
<Name>B</Name>
</Item>
</Emp>
</ns0:MT_Check>
O/P
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Check_Out xmlns:ns0="urn:hdmc:samplescenarios">
<Root>
<EmpData>2A</EmpData>
<EmpData>2B</EmpData>
</Root>
</ns0:MT_Check_Out>
Best regards,
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sunil,
<b>Links Removed</b>
If you have any doubts revert back.
Best regards,
raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.