DVCUG Roundtable - 02/21/01
Topic: XML Data into RPG Programs
Chaired by John Voris
Executive Summary: The RPG sample code works, but if you can wait until V5R1, then XML Extenders using Data Access Definitions (DAD) will be available on UDB/400…Seemy article in the Februrary DVCUG newsletter
The web is loaded with places to find out about XML - BothIBM and Microsoft have their own XML Developer pages. And see my references listed in the handout.
One of many freebie utilities available on the web. I downloaded this last year. This might be handy to "Flesh out" your XML structure / schema.
To view your XML,
IE 5.x and the latest Netscape Navigator 6.x know about XML and will present XML data with color codings and proper indenting. Here is an example of plain XML data for you to view to see if your browser is XML-compliant. If you want more than what is inIE 5.x to validate your XML and know about XSL Style sheets, then download this.
The Demo of
A download fromwww.alphaworks.ibm.com the XML for RPG parser is available for anyone to use. (Don't be dissuaded at the site if it asks if you would want to license the alphaworks code. There are actually vendors who put their sample code into production, and want to purchase copyrights for the code they began their project with.
The download and install instructions were good, installs smoothly, BUT DO NOT DEVIATE from the isntructions.
My question is
How will these sample programs and Service Modules react to a more-than-one element in a node?
And who do we know who is actually doing it?
I spoke with Bob Lance who is forging ahead into this area. He is quickly getting into the file-specific "one-off" quickie program that could turn into a monster. The Sample programs have a metadata file MAPADDRESSBK which stores the column position to the "element-title" for use in the XML which is a good design method to follow.
Here is the code which makes it work. This is something neat to see from the VBXML.COM web site. It is a sample XHTML called Microsoft’s XML DSO, or Data Source Object
Finally, it makes sense to get away from HTML andwrite web pages in XML!
Writing Dynamic XML Pages (Article) /conference/wrox/1999_dc/html/speakers/dino3.html May 19, 2000 : Dino Esposito
Since SAP/JSP, we know a lot about HTML pages dynamically created on the server and then served up to the browser. This is just what the ASP technology lets you do. A problem with this is that the basic language is still HTML and you still use HTML to describe both your data and the way it should be rendered. You should also know a lot about how XML lets you septe data and presentation. Why not, then, write dynamic XML Pages? That is, ASP pages that produce XML/XSL output to be read by an XML-compliant browser like IE5. If you think that this limits you and your users to having IE5 as the browser, be careful. I'll also demonstrate how you can have other browsers such as Netscape Communicator to manage them as pure HTML. What's your ultimate gain? You design and code your ASP pages (and possibly your Web site) using the more expressive XML instead of HTML