|
Albert, Take a look at http://www.alphaworks.ibm.com/tech/xml4rpg. If you use the example that inserts data, you'll need take a look at http://www-919.ibm.com/servers/eserver/iseries/developer/java/xml/documents/xml_rpg.html which is a white paper describing how it works. I will warn you that the above example isn't the easiest thing to understand at first since it is a ported Java app. I had to run it in debug a bunch of times and use the white paper as a reference to figure it out. Once you get the hang of it, it's really not all that bad. If you decide to use this as a basis for a real program, there's a few variables that are ALLOC'd and not DEALLOC'd which will cause it to crash intermittently if you call it in a loop. Also, the vector stuff in the example only returns the first 50 characters of an XML path. The source for it is there so you can bump it up to whatever you like. I did use this example as a basis for a program we're using now and I was able to get it to process about 5mb of XML in about 10 seconds during testing on the 620 we had at the time. Matt -----Original Message----- From: York, Albert [mailto:albert.york@nissan-usa.com] Sent: Thursday, January 30, 2003 2:10 PM To: 'RPG mailing list' Subject: XML parser Does anyone have an example of an RPG program that does XML parsing that they would be willing to share? TIA. Albert York _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo.cgi/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.