I have seen samples like that, but does this counter tell how many of the count of that element are in the document, or how many were parsed? That is, if I have a 10 element array, and the counter says 10, does that mean that I got all the elements, and it just happened to fill up the array, or does it mean that there are 10 or more elements in the document, and I got as many as I can handle.
Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx
-----midrange-l-bounces@xxxxxxxxxxxx wrote: -----
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
From: sjones@xxxxxxxxxxxxxxx
Sent by: midrange-l-bounces@xxxxxxxxxxxx
Date: 09/15/2011 11:05AM
Subject: Re: XML-INTO sample
Mark::
Have a look at this thread & see if you can use the subfield as a
counter.
http://archive.midrange.com/rpg400-l/201011/msg00387.html
Steve Jones
XML-INTO sample
Mark Murphy/STAR BASE Consulting Inc.
to:
midrange-l
09/15/2011 10:44 AM
Sent by:
midrange-l-bounces@xxxxxxxxxxxx
Please respond to Midrange Systems Technical Discussion
I am working on a proof of concept for processing an unknown number of XML
documents that include some header info and an unknown number of details.
I have looked through Scott's article at
http://systeminetwork.com/article/real-world-example-xml, and it looks
like XML-INTO will fit the bill, but I have not seen a good way to handle
an unknown number of detail formats. Would I do that with an array
embedded within the data structure at the right depth? If that is the
case, I will need to set a maximum expected number of details. How do I
know if I have overflowed that array?
Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.