[archive] output in XML format

[Migrated content. Thread originally posted on 14 March 2005]

I want to write data in XML format using AcuXML. The data I want to write is an order with orderheader and orderlines. The order has to appear in one XML file so i made a file description that looks like:

FD ORDER.
01 ORDER-RECORD.
03 CUSTOMER-NUMBER.
03 ORDER-NUMBER.
03 ORDER-LINE OCCURS 1 TO 99 TIMES DEPENDING ON
NO-OF-ORDERLINES.
05 ITEM-ID.
05 DESCRIPTION.
05 QUANTITY.

In the XFD the OCCURS is set to 99. In my XML file the group ORDER-LINE occurs 99 times althoug NO-OF-ORDERLINES is 2 for example. I want the group ORDER-LINE to occur 2 times in my XML files. How can this be done?

Can anyone help me with this problem?