× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



The RPG docs themselves have samples for XML-SAX. For loading the temp tables, I don't know. I just made it up on my own. I know the XML layouts, so I write the SQL code to create the tables. My handler does SQL inserts to create the table rows.

The only hard part is the XML-SAX, and there are examples for that.

-----Original Message-----
From: Greg Wilburn [mailto:gwilburn@xxxxxxxxxxxxxxxxxxxxxxx]
Sent: Friday, August 31, 2018 1:01 PM
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxx>
Subject: RE: [EXT] Fwd: XML with 8 levels of multi-occurring segments

That's something new... any examples on the web?

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Justin Taylor
Sent: Friday, August 31, 2018 1:40 PM
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxx>
Subject: RE: [EXT] Fwd: XML with 8 levels of multi-occurring segments

" One of the tricks I use with XML-SAX is to use Sql Global Temp tables to store the data. They are simple and very fast."

That's my preference as well, for anything more than the most basic use case.



-----Original Message-----
From: Alan Campin [mailto:alan0307d@xxxxxxxxx]
Sent: Friday, August 31, 2018 12:31 PM
To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Subject: Re: [EXT] Fwd: XML with 8 levels of multi-occurring segments

Are you processing as the order level, meaning so you process all the data for one order and then process the next order assuming you were processing order by order.

What would the tables look like if you were writing to disk?

One of the tricks I use with XML-SAX is to use Sql Global Temp tables to store the data. They are simple and very fast.

I also just use dynamic memory which is also pretty simple.

Any chance we could see example XML for one order (Dummy up to hide your data)?


--
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: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

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.