Groups | Blog | Home
all groups > dotnet xml > september 2004 >

dotnet xml : Hpw to serialize boolean to 0/1 into XML?


Rita
9/25/2004 9:01:02 AM
I can deserialize my Xml that contains 0/1 to bool, but when I again
serialize it, value is true/false. Is there some way to force boolean value
to be serialized as 0 and 1, not true or false?
Thanks.
Martin Honnen
9/25/2004 7:23:24 PM


[quoted text, click to view]

I suspect it is not possible, looking at
http://www.w3.org/TR/xmlschema-2/#boolean
the possible values are 0, 1, true, false but the canonical values are
only true, false and I suspect those are choosen when you serialize.

--

Martin Honnen
AddThis Social Bookmark Button