[xsd-users] problem with xerces namespace

Boris Kolpackov boris at codesynthesis.com
Fri May 2 12:58:02 EDT 2008


Hi Denny,

Denny Hatzenbihler <drhvm at us.ibm.com> writes:

> I am using the xsd to convert  schema's to .hxx and .cxx.  The problem i am
> hitting is the xerces namespace used by the xsd tool (xercesc::) does not
> match the xerces namespace used by the rest of the code that will be using
> the generated C++ classes/headers (xercesc_2_7::).

The xercesc namespace is defined as an alias for the versioned one
(from xercesc/util/XercesDefs.hpp):

namespace xercesc = xercesc_2_7;

Thus it is possible to use the two interchangeably. What exactly
happens? Do you get compile or link errors?

Boris




More information about the xsd-users mailing list