我正在将使用Xerces-c进行XML处理的代码库从Windows/VC++移植到Linux/G++。
在Windows上,Xerces-c使用wchar_t作为字符类型XmlCh。在Linux/G++上,wchar_t为32位,Xerces-c使用unsigned short int (16位)作为字符类型XmlCh.但在我这么做之前,我想问是否有人知道一个更明智的方法来编写跨平台Xerces-c代码。
我收到了一条以前在XML处理代码中从未见过的错误消息。我最近并没有真正改变什么,但我们现在正在移动东西。到目前为止,我运行的程序都受到了影响。
Warning at file , line=0, column=0, An exception occurred! Type:RuntimeException, Message:Warning: The primary document entity could not be opened. Id=/tmp/authNotify.xsd