XML File Generation
Posted: Tue Feb 15, 2011 10:03 am
Hi,
I need to create an xml output from multiple datasets.
<Body>
<Profile>
<EmpId>123</EmpId>
<Addresses>
<address>
<AddrType>Main</AddrType>
<City>ABC</City>
</address>
<address>
<AddrType>Secondary</AddrType>
<City>XYZ</City>
</address>
</Addresses>
</profile>
</Body>
Address is repeating element , I have selected AddrType as Key but I am getting two records in the xml ie., First address info in the first record and second address info in the second record.
Job Flow:
[Addr Dataset]----------->[Addr xml o/p]--->
Join the above Addr Xml output with the [Employee Datset] and generate the final xml.
Please suggest me what to do to get the correct output.
Thanks,
Thripura
I need to create an xml output from multiple datasets.
<Body>
<Profile>
<EmpId>123</EmpId>
<Addresses>
<address>
<AddrType>Main</AddrType>
<City>ABC</City>
</address>
<address>
<AddrType>Secondary</AddrType>
<City>XYZ</City>
</address>
</Addresses>
</profile>
</Body>
Address is repeating element , I have selected AddrType as Key but I am getting two records in the xml ie., First address info in the first record and second address info in the second record.
Job Flow:
[Addr Dataset]----------->[Addr xml o/p]--->
Join the above Addr Xml output with the [Employee Datset] and generate the final xml.
Please suggest me what to do to get the correct output.
Thanks,
Thripura