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



Paul,

There are at least a dozen ways to read XML from RPG. Different methods require different releases and LPPs.

a) Expat is free (open source) and should work on V5R2 with no problems. It requires a little more knowledge/programming.
http://www.scottklement.com/expat/

b) the XML-INTO/XML-SAX RPG opcodes were released in V5R4. XML-INTO is especially easy to use -- but does have limitations, it won't work with all docs, and of course it requires V5R4.

c) The IBM XML Toolkit has been around for quite a long time.. I don't remember which release it started in. Frankly, it's really cumberssome to use, and all of the examples were written by C programmers (they translated their C to RPG -- but it's not the way an RPG programmer would write code. Lots of pointer logic, etc...) IMHO, it's not a good way to get started with XML, it's too complicated. The XML Toolkit is an LPP.

d) There are many, many 3rd party options out there.



Paul Nelson wrote:
This is a V5R2 box. Is the XML support in there, or does the customer need
to upgrade?

Paul Nelson
Office 512-392-2577
Cell 708-670-6978
nelsonp@xxxxxxxxxxxxx


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Michael Ryan
Sent: Tuesday, March 03, 2009 6:26 AM
To: Midrange Systems Technical Discussion
Subject: Re: Reading XML with an RPG program

1. Yes.
2. No. It's built into RPG with the XML opcodes, though I use Scott's eXpat
port.
3. I have eXpat examples if you're interested. I know I've seen examples of
the XML opcodes on the list - check the archives.

On Tue, Mar 3, 2009 at 7:06 AM, Paul Nelson <nelsonp@xxxxxxxxxxxxx> wrote:

1. Can it be done?
2. Does it require an extra LPP?
3. Anybody got any code samples they are willing to post?

Thanks

Paul Nelson
Office 512-392-2577
Cell 708-670-6978
nelsonp@xxxxxxxxxxxxx



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.




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