我已经尝试在教程中找到一些用于此工作的代码,并且通过谷歌搜索,没有运气。

如果有人使用过 PugiXml,你能帮我吗?

我的主要麻烦是Unicode,否则该库非常易于使用。

提前致谢。

最佳答案

打开 pugiconfig.hpp 并取消注释 PUGIXML_WCHAR_MODE。

现在您可以分别使用 wchar_t 和 std::wstring 代替 char 和 std::string 。

快速入门在这里:http://pugixml.googlecode.com/svn/tags/latest/docs/quickstart.html

关于c++ - 使用 PugiXML 解析 Unicode XML 的示例代码,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/1931714/

10-12 00:12
查看更多