I need to generate a xml file from a complicated COBOL structure (mainframe). I cant use the XML GENERATE cobol function because the data tree is too big to fit in the W-S (about 8 nested arrays, each with about 75 occurrences of 30 bytes), so there is no one group item to pass to the xml generate function.
The only option i can think of is generating the xml "manually" by going through the hierarchy on the needed adabas tables level by level and filling the file, the problem for me with this option is that I don't know how to go over the file again each time and "Nest" the next node.
Is there a better way?
The data is coming from ADABAS tables, and i can also work with natural, is there a better solution using natural? from what i know natural doesn't allow nesting more than 3 levels, which is a problem for me.
Thank you!