Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 如何在pugixml中将元素文本获取到WCHAR*_C++_Xml_Pugixml - Fatal编程技术网

C++ 如何在pugixml中将元素文本获取到WCHAR*

C++ 如何在pugixml中将元素文本获取到WCHAR*,c++,xml,pugixml,C++,Xml,Pugixml,我正在使用pugixml库解析xml文件 如何在pugixml中将节点文本获取到WCHAR*?您有两个基本选项: 使用pugixml\u WCHAR\u模式编译pugixml在pugiconfig.hpp或编译选项中定义集,然后使用常用方法获取节点文本(即node.text().get()或node.child\u value()) 使用pugi::as_-wide函数,即pugi::as_-wide(node.child_-value()) 有关详细信息,请参阅

我正在使用pugixml库解析xml文件


如何在pugixml中将节点文本获取到WCHAR*?

您有两个基本选项:

  • 使用
    pugixml\u WCHAR\u模式编译pugixml
    pugiconfig.hpp
    或编译选项中定义集,然后使用常用方法获取节点文本(即
    node.text().get()
    node.child\u value()

  • 使用pugi::as_-wide函数,即
    pugi::as_-wide(node.child_-value())

  • 有关详细信息,请参阅