Jon,
Take a XML file of eBilling ducuments like ZUGFeRD, factur-x, eOrder, ubl
formats and you know, what a huge document is. I made several apps to
handle this with one XML-INTO statement, including a lot of nested knots.
SQL? No chance!

-------- Ursprüngliche Nachricht --------
Von: Jon Paris <jon.paris@xxxxxxxxxxxxxx>
Datum: Do., 3. Apr. 2025, 23:01
An: "RPG programming on the IBM i (AS/400 and iSeries)"
<rpg400-l@xxxxxxxxxxxxxxxxxx>
Betreff: Re: XML-Into with %HANDLER

No - in fact you cannot do that.  Given that you have 16mb available at
the level the %Handler is attached to it would have to be a massive
document to have a nested level that big - bigger than I've ever seen
for sure.

Jon Paris
Jon.Paris@xxxxxxxxxxxxxx

> On Apr 3, 2025, at 1:55 PM, Art Tostaine, Jr. <atostaine@xxxxxxxxx>
wrote:
>
> I'm looking all over for an answer to this but I'm a noob on this.
>
> If I have an XML that has more than 1 level nested, do I define a
%HANDLER
> procedure for each element?
>
> Jon's example processes this XML with one %Handler
>
> <Customers>
> <Company>Phones R Us</Company>
> <Company>Suchadeal Bank</Company>
> </Customers>
>
> Do I need a separate handler for each nest in this example XML? What
Data
> structure would I pass?
>
> <customers>
>    <customer>
>        <CustID>1001</CustID>
>        <CustName>John Smith</CustName>
>        <CustStatus>Active</CustStatus>
>    </customer>
>    <customer>
>        <CustID>1002</CustID>
>        <CustName>Jane Doe</CustName>
>        <CustStatus>Inactive</CustStatus>
>    </customer>
> </customers>
> --
> This is the RPG programming on IBM i (RPG400-L) mailing list
> To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
> or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at https://archive.midrange.com/rpg400-l.
>
> Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related questions.
>

--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 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.