c++ xml读写库介绍

 

c++ xml读写库xmlcpp提供很是方便的属性操做方法,能够简便地完成有关属性的一系列操做:node

  1. 属性的增长
  2. 属性的删除
  3. 属性值的修改
  4. 属性的搜索、统计和清理

如下是演示代码,极度易用:c++

//============================================================================// Name        : libxmlcpp_test.cpp// Author      : mathsdk@163.com,numcpp@126.com// Version     : 1.0//============================================================================#include "xmlcpp.h"using namespace std;using namespace xmlcpp;int main() {    node demo("demo");    cout<http://open.189works.com/product/product.htm   attributes::find_type &result=demo.find("属性_2");    if(result.first)    {        cout<
相关文章
相关标签/搜索