[xsd-users] generate binding on 3DXML file

Boris Kolpackov boris at codesynthesis.com
Wed Nov 29 12:40:22 EST 2006


Hi,

barbapapaz <barbapapaz at gmail.com> writes:

> 3Dxml file is concurent of colada of Sony
>
> I try to generate c++ class with xsd.exe (cxx-tree), but i have an error:
>
> 3DXML.xsd:276:85: error: Value '0.0E0' with length '1' is not equal to
> length facet of '3' . I don't find this informations in 3dxml.xsd.

This is a bug in Xerces-C++ 2.7.0 (jira issue #1546) that is fixed in the
latest beta (2.3.1.b1) which you can get here:

http://codesynthesis.com/products/xsd/download.xhtml


I was able to compile your schema with this command line:

xsd cxx-tree --namespace-map http://www.3ds.com/xsd/3DXML=ThreeDXML 3DXML.xsd


Note also that you will need to do one of the following:

1. Disable validation on the Xerces-C++ level by passing the
   xml_schema::flags::dont_validate flag to the parsing function.

2. If you want validation then your will need to patch Xerces-C++ that
   you link to your application with the fix for this bug. The patch
   can be downloaded from here:

   http://codesynthesis.com/~boris/tmp/xerces-c-2.7.0-1546.patch


hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20061129/2d9426b6/attachment.pgp


More information about the xsd-users mailing list