The customization values in <typemap> binding
declarations are used to map a specific XSD type, or a
space-separated list of XSD types, to a C#/Java type. This can be
done at global or schema level. This mapping configuration can be
used to preserve the format of floating point numbers after decoding
and reencoding.
Usage
<typemap>
[<xsdtype>. . .</xsdtype>]
[<cstype>. . .</cstype>]
[<javatype>. . .</javatype>]
...
</typemap>
<xsdtype> is used to specify the XSD Type being mapped, and <cstype> or <javatype> are used to specify the C# or Java type. For example, to map xsd:decimal, xsd:double and xsd:float types to string:
<typemap>
<xsdtype>decimal double float</xsdtype>
<cstype>string</cstype>
<javatype>string<javatype>
</typemap>
It is possible to specify multiple mappings.
The valid values for cstype and javatype
are: byte, int16, uint16, int32, uint32, string. The values are not target language names, but have an
obvious correspondence to target language types. The unsigned types
(u*) are not legal values for javatype.