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



On Wed, 2004-07-14 at 19:43, Richard Rothe wrote:
> I have the need to begin generating XML files to pass data to a vendor.
> I understand that I will need to generate the XML content.  The question
> is....how ?
> 
> Is the XML4PR still available ?  Can I find it on my iSeries ?  Or, am I
> required to buy the XML Toolkit from IBM ?

You don't need the kit to write XML, but you will need it or something
like it to parse the XML.  If Aaron Bartell is out there listening, this
is really his area of expertise...

As for writing XML, check out the "cp_ifs" copy member in
RPGNEXTLIB/QRPGLESRC.  You'll have to read up on using them, and you'll
need to include the QC2LE binding directory.  That being said, you can
easily use these to create files in the IFS and then write XML formatted
strings.  Details on the copy member can be found here:

http://www.rpgnext.com/docs/additional/xRPG_core_library_additional_copys.php

> Can I find some examples of generating XML with RPG somewhere ?

I will try to post an example tomorrow on the website, but basically,
you read through your files and create strings that contain the proper
XML and write it out to a file you create in the IFS.  Using
sub-procedures  makes it very clean and easy.

Joel 
http://www.rpgnext.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 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.