[xsd-users] Writing doubles with decimal point

Boris Kolpackov boris at codesynthesis.com
Mon Oct 7 07:12:24 EDT 2013


Hi Victor,

Victor Fine <victor.fine at gmail.com> writes:

> I need to output double values with decimal point even when they are
> integers. e.g.  "9.0" instead of "9". Do you have any ideas ?

You can achieve this with type customization. See the C++/Tree Mapping
Customization Guide:

http://wiki.codesynthesis.com/Tree/Customization_guide

As well as the examples in the examples/cxx/tree/custom/ directory. In
fact, the 'double' example does pretty much what you want.

Boris



More information about the xsd-users mailing list