Creating XML Files in Datastage
Posted: Thu Jul 20, 2006 10:56 am
Hi,
I have just started working with the XML stages in DATASTAGE and I am trying without much sucess to create a XML output file that conforms to the following simplified structure:
<ROOT>
<CUSTOMER>
<ORDER>
</ORDER>
<ORDER>
</ORDER>
<ORDER>
</ORDER>
<ORDER>
</ORDER>
</CUSTOMER>
<ROOT>
I have 2 source of Customers and Orders and a customer can have many orders upto anything from 1-100 but I am unable to create multiple nested ORDERs child elements under one parent CUSTOMER.
The best I have been able to produce so far is multiple files of the following structure:
<ROOT>
<CUSTOMER>
<ORDER>
</ORDER>
</CUSTOMER>
<ROOT>
Has anyone been able to create this format, if so please could you give me a few pointers!
Many Thanks
Ab
I have just started working with the XML stages in DATASTAGE and I am trying without much sucess to create a XML output file that conforms to the following simplified structure:
<ROOT>
<CUSTOMER>
<ORDER>
</ORDER>
<ORDER>
</ORDER>
<ORDER>
</ORDER>
<ORDER>
</ORDER>
</CUSTOMER>
<ROOT>
I have 2 source of Customers and Orders and a customer can have many orders upto anything from 1-100 but I am unable to create multiple nested ORDERs child elements under one parent CUSTOMER.
The best I have been able to produce so far is multiple files of the following structure:
<ROOT>
<CUSTOMER>
<ORDER>
</ORDER>
</CUSTOMER>
<ROOT>
Has anyone been able to create this format, if so please could you give me a few pointers!
Many Thanks
Ab