Creating XML from multiple tables with one to many relations

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
edmtenzing
Premium Member
Premium Member
Posts: 22
Joined: Wed Jul 23, 2008 5:59 pm
Contact:

Creating XML from multiple tables with one to many relations

Post by edmtenzing »

My XML file has got multiple levels which is sourced from number of database tables. For example;

Code: Select all

<A>
    <B\>
    <C\>
    <D>
         <E>
         <E>
     <\D>
    <D>
         <E>
         <E>
     <\D>
<\A>
There are many elements and there could be up to 20 children for an element. Depending on the requirement, the number of children can change. I have access to the XSD and the source will stay as it is.
Is there a best practice on how to create a complex XML file using DataStage? And if there is one, can it be redesigned quickly if the design changes?
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

Search thru the forum here. Find the "XML Best Practices"....link to kduke's site where you can find it. It goes into detail on how to create complex, multi-node XML. It's not particularly easy, but it can be done.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Post Reply