Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Former Member Absent Member.
Absent Member.
404 views

[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?
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.