[xsd-users] RE: Errors: Redefination:Different Basic Type e.g - 'xml_schema::uri'

Boris Kolpackov boris at codesynthesis.com
Thu Jul 11 11:42:30 EDT 2024


Auti, Ajay <ajay.auti at siemens.com> writes:
 
>   *   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.
> 
>   *   My other library continues to use other.xsd files with Normal Char
>       Support.
> 
>   *   Library 2 and Library 1 are statically connected.

This is not officially supported: you should use the same character type
across your application, including all the libraries linked (statically
or dynamically).

You could try to make this work my mapping the XML Schema namespace
to two different C++ namespaces (using the --namespace-map XSD compiler
option) but there is no guarantee it will work and I would not recommend
it unless you really cannot use the same character type in both cases.



More information about the xsd-users mailing list