× 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.



Thanks for your help Scott.

We are running V5R4 so an upgrade will likely take care of the namespace issue and the size limitation on the data structure, which solves my problem.

Thanks again,


David Baugh

Data Processing

Deans & Homer

340 Pine Street 2nd Floor

San Francisco, CA 94104

415-421-8332 x231


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Tuesday, March 20, 2012 1:04 PM
To: RPG programming on the IBM i / System i
Subject: Re: namespace issue from IWS Wizard

Hi David,

On 3/20/2012 11:59 AM, David Baugh wrote:
The application I'm working on has an exact match between the format
of the file and the XML data structure. So I'd like to take advantage
of that and try to get away with defining all my structures externally
by hooking into the external file definitions in RPG.

Okay. That's why I presented multiple possibilities -- so you can pick the one that's a best fit your situation.


Perhaps my lack of experience is showing here, but I guess an upgrade
is the obvious answer.


Upgrade? I'm not sure that you stated which release you're running. But if you're running V5R4, an upgrade will definitely improve the XML handling stuff.


..then I do have another issue with XML-INTO. In the service program,
I'm using a cursor to get the data into up to 999 instances of a data
structure. When I define the result in the consuming program, the
compiler tells me that XML-INTO has a potential problem with the size
of the data structure exceeding 65535 bytes.


At V5R4, a named data structure must be 65535 bytes or smaller.
(Including all sub-fields and other sub-elements.) Not sure what you're
looking for me to comment on, other than perhaps to explain that limitation?

At 6.1, the size limit is increased to 16 MB.

Depending on the circumstance, you may be able to work around the v5r4
limit using %HANDLER. (Or, with XML-SAX or Expat... but we've already
ruled those out for you.)

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.