Try using the free CGIDEV2 HTML programs from Giovanni Perotti and Mel Rothman. These work equally well to create XML as HTML. You define a template with placeholders for formats and variables, and call procedures to fill those in. Ignore references to the web.
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jeff Young
Sent: 19 April 2012 15:35
Subject: Create XML file
I have a client that needs to send an XML document to one of their
customers with product data.
They do not want to purchase a package to do this.
The XML will not be sent to a web service, but will be placed in a
directory on the server for processing.
If possible, all of the work to build the document should be done in RPGLE.
Excluding purchased software, can anyone point me to sample code or links
that explain how to do this?