Is it possible to use XML GENERATE to create XML with multi-level nested elements of different sizes?
For instance:
01 SOURCE-REC.
05 REPEATING-PARENT OCCURS 5 TIMES.
10 PARENT-NAME PIC X(7).
10 CHILD-COUNT PIC 9.
10 REPEATING-CHILD OCCURS 1 TO 5 TIMES
DEPENDING ON CHILD-COUNT.
15 CHILD-NAME PIC X(6).
Compilation using Enterprise Cobol v4.1 gives:
IGYGR1263-S "VIEW DEPENDENCE" The object "CHILD-COUNT" has been defined as a table element. The phrase “DEPENDENT” was dropped.
IGYGR1116-S The DEPENDENT ON object for the REPEATING-CHILD table is not valid. The phrase “DEPENDENT” was dropped.
Not all parents will have the same number of children. How can this be solved?
Edit: I believe this is not an XML issue. I hit a wall while trying to create working memory, which I later hope to pass to XML GENERATE.