You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by Michael Zwettler <mi...@gmx.at> on 2004/07/30 13:01:35 UTC

boolean en-/decoding

Hello,

the apache xmlrpc library accepts only "0" and "1" as correct
boolean values while "true" and "false" are both interpreted
as false value.
Other libraries evaluate the strings "true" and "false" to
the booleans true and false.

Are "true" and "false" correct boolean values or not?

Michael

Re: boolean en-/decoding

Posted by John Wilson <tu...@wilson.co.uk>.
On 30 Jul 2004, at 12:01, Michael Zwettler wrote:

> Hello,
>
> the apache xmlrpc library accepts only "0" and "1" as correct
> boolean values while "true" and "false" are both interpreted
> as false value.
> Other libraries evaluate the strings "true" and "false" to
> the booleans true and false.
>
> Are "true" and "false" correct boolean values or not?
>
The spec is here http://www.xml-rpc.com/spec

It says that the values allowed are 0 and 1, "true" and "false" are 
invalid values.


John Wilson
The Wilson Partnership
http://www.wilson.co.uk