Repeating blocks in XML

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
userds
Participant
Posts: 19
Joined: Mon Feb 14, 2005 1:39 pm

Repeating blocks in XML

Post by userds »

I need to generate a xml file using xml output stage. Please find the below xml schema. Each <inventory> block should have unique <statusid>. Each <company> block should have unique <transactiondate>.

When <transactiondate> changes xml file should have a new <company> block.
When <statusid> changes new <inventory> block should be created.


<company>
<header></header>
<inventory>
<statusid>01</statusid>
<stock>
<stockcode>01</stockcode>
<transactiondate>01/01/05</transactiondate>
<amount>2500</amount>
</stock>
</inventory>
</company>

Can anybody suggest how to generate these Repeating Blocks in XML.

Thanks.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I'm sure this has been covered before. Did you try a Search?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
userds
Participant
Posts: 19
Joined: Mon Feb 14, 2005 1:39 pm

Repeating blocks in XML

Post by userds »

ray.wurlod wrote:I'm sure this has been covered before. Did you try a Search?
I have searched the previous xml topics, but could not find anything which is specific to the above mentioned requirement. Could you please give some idea regarding how to handle repeating blocks in xml.

Thanks.
Post Reply