[xsd-users] Linker conflict when generating code from 2 different XML files with identically-named elements

Boris Kolpackov boris at codesynthesis.com
Fri Feb 13 05:03:23 EST 2015


Hi Garry,

Garry Jeromson <garry.jeromson at enclustra.com> writes:

> I have a problem in code where I'd like to parse 2 different XML
> files (with different schemas) - when compiling, I get a bunch of
> linker errors like this:
> 
> The reason is clear - the ConfigurationProperty element in the XML
> schema generates the same code in both generated .cxx files. The
> question is, is there a smart way to deal with this?

Yep, called the --namespace-map option.

Boris



More information about the xsd-users mailing list