Remove the XERCES_USE_CHAR16_T define Does not work when XMLCh == uint16_t, so always use reinterpret_cast to wchar_t.