[xsd-users] Issue with XSD 4.0.0 - serialization.txx

Boris Kolpackov boris at codesynthesis.com
Fri Sep 19 04:24:02 EDT 2014


Hi Mahesh,

Mahesh Gorasia <mgorasia_17 at hotmail.com> writes:

> There is a 'using namespace xercesc' in there which causes ambiguous symbol
> errors with 'DOMDocument' when using XSD with projects that either directly
> or indirectly include MSXML.h from Microsoft.
> 
> 
> Unlike your DOMDocument which is nicely placed in a named namespace,
> Microsoft places their 'DOMDocument' in the global namespace, a bit of
> defensive coding in the use of fully qualified names resolves this.

You are the second person reporting this so I've removed all the uses
of 'using namespace xercesc' from XSD headers:

http://scm.codesynthesis.com/?p=xsd/xsd.git;a=commit;h=a066f175060a6ada5c60c378ca4dab6e9b571e35

Thanks for the report, analysis, and the patch!

Boris



More information about the xsd-users mailing list