<typemap> Declaration

The customization values in <typemap> binding declarations are used to map a specific XSD type or a list of XSD types separated by space to a C 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>]
          [<ctype>. . .<ctype>]
          ...
   </typemap>

<xsdtype> is used to specify the XSD Type being mapped, and <ctype> is used to specify the C Type. For example, to map xsd:decimal, xsd:double and xsd:float types to string:

   <typemap>
          <xsdtype>decimal double float</xsdtype>
          <ctype>string</ctype>
   </typemap>

It is possible to specify multiple mappings.