For windows build in visual studio: * set XercesLib->Properties->Configuration Properties->C/C++->Language->"Treat wchar_t as Built-in Type" to "Yes (/Zc:wchar_t) (this is set wrong in the default projects distributed with Xerces)