三方库下载
源码地址:https://github.com/leethomason/tinyxml2
使用方法:将tinyxml2.cpp和tinyxml2.h拷贝至你的项目目录,使用时包含#include “tinyxml2.h”和using namespace tinyxml2。最后,在编译时只需要将这两个和其他的源文件一起编译即可。
一、保存xml
#include <string>
#include <iostream>
<
源码地址:https://github.com/leethomason/tinyxml2
使用方法:将tinyxml2.cpp和tinyxml2.h拷贝至你的项目目录,使用时包含#include “tinyxml2.h”和using namespace tinyxml2。最后,在编译时只需要将这两个和其他的源文件一起编译即可。
#include <string>
#include <iostream>
<