[xsde-users] Duplicate Class Names Across Multiple XML/XSD
Schema Implementations
Boris Kolpackov
boris at codesynthesis.com
Mon Mar 15 16:11:06 EDT 2010
Hi Bob,
Bob.Oneil at l-3com.com <Bob.Oneil at l-3com.com> writes:
> For example, if the XSD files contain an element named "Author" in
> both files, GCC will report collisions on the class names even if
> the elements are at different leafs of the XSD tree.
>
> [...]
>
> Perhaps you have other solutions that would remove this restriction.
The recommended way to make the generated code from several
unrelated schemas that use the same XML namespace coexist in the
same application is to place the generated code for each schema
into a separate C++ namespace.
You can achieve this with the --namespace-map option. If your
schema does not have a target namespace, you can still use this
option with an empty string for the XML namespace, for example:
--namespace-map =my_namespace
Boris
More information about the xsde-users
mailing list