[xsd-users] Errors: Redefination:Different Basic Type e.g -
'xml_schema::uri': redefinition; different basic types
Auti, Ajay
ajay.auti at siemens.com
Mon Jul 8 02:35:50 EDT 2024
Hi boris,
For my application(Windows basesd-MFC), I am using the Code Synthesis Library. I encountered a lot of errors which highlighted below.
1. Library 1
* I have to enable Wide character (wchar_t) support for one.xsd file in one library. When creating.hxx files, we are initially using standard character support.
* Our command for file generation is as follows:
xsd cxx-tree --namespace-map http://www.w3.org/2000/09/xmldsig#=xmldsig --generate-serialization --proprietary-license --char-type wchar_t --char-encoding auto ..\CCIA\Schema\WTCCIA_conf.xsd
1. Library 2
* My other library continues to use other.xsd files with Normal Char Support.
* Our command for file generation is as follows:
xsd cxx-tree --location-map http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd=xmldsig-core-schema.xsd --namespace-map http://www.w3.org/2000/09/xmldsig#=xmldsig_xsd --generate-serialization --proprietary-license schema\*.xsd
* Library 2 and Library 1 are statically connected.
I encountered a lot of errors with "redefinition; different basic types" when compiling my code.
Errors:
'xml_schema::uri': redefinition; different basic types
'xml_schema::uri': redefinition; different basic types
'xml_schema::uri': redefinition; different basic types
'xml_schema::uri': redefinition; different basic types
'xml_schema::uri': redefinition; different basic types
'xml_schema::unexpected_enumerator': redefinition; different basic types
'xml_schema::unexpected_enumerator': redefinition; different basic types
'xml_schema::unexpected_enumerator': redefinition; different basic types
'xml_schema::unexpected_enumerator': redefinition; different basic types
'xml_schema::unexpected_enumerator': redefinition; different basic types
'xml_schema::unexpected_element': redefinition; different basic types
'xml_schema::unexpected_element': redefinition; different basic types
'xml_schema::unexpected_element': redefinition; different basic types
'xml_schema::unexpected_element': redefinition; different basic types
'xml_schema::unexpected_element': redefinition; different basic types
'xml_schema::token': redefinition; different basic types
'xml_schema::token': redefinition; different basic types
'xml_schema::token': redefinition; different basic types
'xml_schema::token': redefinition; different basic types
'xml_schema::token': redefinition; different basic types
'xml_schema::token': redefinition; different basic types
'xml_schema::token': redefinition; different basic types
'xml_schema::time': redefinition; different basic types
'xml_schema::time': redefinition; different basic types
'xml_schema::time': redefinition; different basic types
'xml_schema::time': redefinition; different basic types
'xml_schema::time': redefinition; different basic types
Would you kindly assist me in solving this problem?
Regards,
Ajay
More information about the xsd-users
mailing list