from http://blog.csdn.net/qinwei4072880/article/details/38865179
1、rapidxml不支援中文路徑。
2、rapidxml不支援Unicode xml必須為utf-8編碼。
解決方法:
#ifdef _UNICODE
setlocale(LC_ALL, "Chinese-simplified"); // 設定中文環境
USES_CONVERSION;
file<> doc(W2A(lpszXml));
setlocale(LC_ALL, "C");
// 還原
#else
file<> doc(lpszXml);
#endif
xml_document<> XmlAnalyse;
XmlAnalyse.parse<0>(doc.data());