<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.
<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>
Copyright © Objective Systems 2002-2008 This document may be distributed in any form, electronic or otherwise, provided that it is distributed in its entirety and that the copyright and this notice are included. |
Objective Systems, Inc.55 Dowlin Forge RoadExton, Pennsylvania 19341 http://www.obj-sys.com Phone: (484) 875-9841 Toll-free: (877) 307-6855 (US only) Fax: (484) 875-9830 info@obj-sys.com |