|
Ray, Have you checked out the AlphaWorks site (http://www.alphaworks.ibm.com/tech/xml4rpg)? There are examples included with it. Note that the example that loads XML data into the database is very poorly written. IBM wrote a white paper on it (there's a link in the documentation to it) that you should read to see what is going on. Once you remove the stupidity from the code, it's not to bad. Besides the generally stupid coding, two of the four variables that are alloc'd are never dealloc'd so if you call the sample in a loop, it will eventually blow up. You can either add the dealloc for them or define them in the D specs and remove the alloc and dealloc lines. Also, this has since become a separate product starting with V5R1. Right no, it's equivalent to what you get from AlphaWorks so you may want to check out the InfoCenter for samples and documentation as well. As far as learning about XML itself, there is a very good tutorial at http://www.w3schools.com/xml/. Go through the XML tutorial and then the DTD tutorial (it builds on the XML tutorial). You will likely be using the IFS quite a bit for this. If you use the parser for reading and writing XML files, you don't have to worry about to many details of it. The parser does the file IO for you. Matt -----Original Message----- From: Ray Nainy [mailto:ray_456@hotmail.com] Sent: Monday, September 23, 2002 9:12 PM To: rpg400-l@midrange.com Subject: Using XML SAX and DOM parsers for RPG Hello Everyone, I need some help in how to use SAX/DOM parsers for RPG to create, read and update XML files using RPG. What are Document Type Definition(DTD) standards? Do I need to use IFS for this? Is there any documentation/website available on this subject? Thanks for all your help. :) _________________________________________________________________ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com _______________________________________________ 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/cgi-bin/listinfo/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.