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

Mahesh Gorasia mgorasia_17 at hotmail.com
Sun Sep 14 13:27:11 EDT 2014


Hi,

 

Please find attached a patch for your consideration to the serialization.txx
file (libxsd/xsd/cxx/tree).

 

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.

 

Kind regards,

Mahesh

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fully_qualified_names_patch.patch
Type: application/octet-stream
Size: 1220 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20140914/cd890673/fully_qualified_names_patch.obj


More information about the xsd-users mailing list