#include "stdafx.h" #include <iostream> #include <rapidxml.hpp> #include <rapidxml_utils.hpp> #include <rapidxml_print.hpp> using namespace rapidxml; int _tmain(int argc,_TCHAR* argv[]) { file<> doc("main.xml");//文件地址 std::cout<<doc.data()<<std::endl; system("PAUSE"); return EXIT_SUCCESS; }原文链接:https://www.f2er.com/xml/297926.html