|
On May 4, 2016, at 10:52 AM, John R. Smith, Jr. <smith5646midrange@xxxxxxxxx> wrote:
I have a very deeply nested XML with each level having a variable number of
entries.
It is my understanding that in order to use XML-INTO, I create a data
structure for each level and have it dim-ed within the previous level data
structure. So, assuming only 4 levels of variable entries (and there are
more in some areas), if I assume a possible 50 entries per level and 200
bytes for the bottom level, that means I have 6.25M occurrences of the
bottom level data structure (50 * 50 * 50 * 50) for a total of 1.25G of
memory. OUCH!!!
If I use SAX, I think I can alloc the memory for the data structure as I
need it thus reducing it from 1.25G but then I have to keep track of where I
am in the XML. This seems to be a lot more difficult.
Am I missing something in these two options or is there another way to
process my file that I haven't found yet?
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.