[Mono-devel-list] problem in System.Xml.Serialization.TypeTranslator
erand at mainsoft.com
Mon Dec 15 07:34:56 EST 2003
I have a problem in System.Xml.Serialization.TypeTranslator.
TypeTranslator has a primitiveTypes hashtable that initiates some XSD
In MS .NET documentation there is also a table that describes each XSD
type which MS.NET type is related. But MONO implementation is different
from MS. Fro example:
In MONO positiveInteger (XSD type) is mapped to Decimal. In MS
positiveInteger is mapped to String.
The same happened in other XSD type.
Should we change the mapping as in MS .NET?
The problem pops up in the following code:
public class Items
public string quantity;
if you try to Deserialize the following xml to Item instance we put a
decimal object into the string field!
<?xml version="1.0" encoding="utf-8"?>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list