[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTTPAPI/eXPat Style/Model



Yes.

The main change I made to my port of Expat was to have it output UCS-2 
fields to your RPG program instead of outputting UTF-8.  This was done 
because RPG natively supports UCS-2, and that made is much easier to 
use, eliminating the need to use iconv() to convert the data.

Technically, Expat itself supports both... but it's a change that's made 
when the code is compiled. So I didn't really change Expat itself, I 
just changed the RPG prototypes and the way that Expat is compiled... 
but it makes a huge difference to your code.

You can get both the older and newer versions here:
http://www.scottklement.com/expat/



On 8/4/2010 7:22 AM, Michael Ryan wrote:
>
>     Hi Scott -
>     Thanks for the clarification. Has Expat been revised over the years?
>     The export signature I see for LIBEXPAT/EXPAT is "EXPATFORISERIES1".
>     Thanks...
>     - Michael
>
>     On Tue, Aug 3, 2010 at 1:19 PM, Scott Klement<[1]sk@xxxxxxxxxxxxxxxx>
>     wrote:
>
>       Hi Michael,
>
>     >  Should I combine this processing into one program?
>
>       It really doesn't matter, as far as I can tell, whether you combine
>       them
>       or keep them together.  This decision should be based on the
>       architecture you want to write/support.
>
>     >  I currently have HTTPAPI 1.20 on my system, and think I should move
>     >  to 1.23 to take advantage of the http_XmlReturnPtr function.
>
>       You should definitely move to 1.23, even if you never use
>       XmlReturnPtr,
>       if for no other reason than to eliminate all of the bugs that have
>       been
>       fixed since 1.20.
>       However, you can still call Expat directly (instead of using
>       HTTPAPI's
>       wrappers) if you like.  There's no requirement to use HTTPAPI's
>       wrappers.  These wrappers were intended to make things easier --
>       but by
>       all means, keep using Expat's routines directly if you want.  It's
>       more
>       versatile that way -- it just requires more work on your part.
>       -------------------------------------------------------------------
>       ----
>       This is the FTPAPI mailing list.  To unsubscribe, please go to:
>       [2]http://www.scottklement.com/mailman/listinfo/ftpapi
>       -------------------------------------------------------------------
>       ----
>
> References
>
>     1. mailto:sk@xxxxxxxxxxxxxxxx
>     2. http://www.scottklement.com/mailman/listinfo/ftpapi
>
>
>
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------