×
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.
Haven't used those api's and hard to tell without seeing your code. But it looks like it is based on CGIDEV2 so instead of writing the html to stream file you can use this procedure, notes form prototype copy member.
******************************************************************
* GetHtmlBufferP subprocedure - Retrieves the pointer to the Html output buffer
* Returns a data structure containing
* - the pointer to the Html output buffer
* - the used length of the Html output buffer
* Example:
* D OutBuffer s 32767 based(OutbufferP)
* D OutBufferInfo ds
* D OutBufferP *
* D OutBufferLen 10u 0
* C eval OutBufferInfo=callp(GetHtmlBufferP)
******************************************************************
D GetHtmlBufferP pr 20
The other option, you can have it write to IFS file and then read that file into a variable that you can pass to the other program.
Scott
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of rpuglia@xxxxxxxxxxxxxxxxx
Sent: Monday, May 12, 2014 3:14 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: XML Toolkit - create an XML file to be passed as a parameter
Not sure how to get properly formatted XML document into character string using DOM api's from toolkit
Sent from my iPhone
On May 12, 2014, at 4:58 PM, "Scott Mildenberger" <SMildenberger@xxxxxxxxxxxxxxxxxx> wrote:
Can't you just pass it as a large character parm between the two programs?
Scott
As an Amazon Associate we earn from qualifying purchases.