当前位置: 首页 > news >正文

个人网站备案网站名称齐齐哈尔做网站公司

个人网站备案网站名称,齐齐哈尔做网站公司,抽奖网站建设,wordpress怎么修改每个网页的代码rapidxml是一个快速的xml库#xff0c;由C模板实现的高效率xml解析库#xff0c;同时也是boost库的property_tree的内置解析库。 当时rapidxml时#xff0c;只需要把rapidxml.hpp 、 rapidxml_print.hpp 和 rapidxml_utils.hpp 三个文件拷贝到你的工程目录下#xff0c;就可…      rapidxml是一个快速的xml库由C模板实现的高效率xml解析库同时也是boost库的property_tree的内置解析库。 当时rapidxml时只需要把rapidxml.hpp 、 rapidxml_print.hpp 和 rapidxml_utils.hpp 三个文件拷贝到你的工程目录下就可以了。 下面的是测试代码 main.cpp #include iostream #include string #include vector #include rapidxml/rapidxml.hpp #include rapidxml/rapidxml_print.hpp #include rapidxml/rapidxml_utils.hppusing namespace std;int main(int argc, char** argv) {vectorstring v_str ;vectorstring::iterator it ;v_str.push_back(111111);v_str.push_back(222222);v_str.push_back(333333);v_str.push_back(444444);using namespace rapidxml;xml_document doc; //构造一个空的xml文档xml_node* rot doc.allocate_node(rapidxml::node_pi, doc.allocate_string(setting.xml version1.0 encodingutf-8));//allocate_node分配一个节点该节点类型为node_pi对XML文件进行描描述内容在allocate_string中doc.append_node(rot); //把该节点添加到doc中xml_node* node doc.allocate_node(node_element, root, NULLxml_node* analysis doc.allocate_node(node_element, Analysis, NULL);node-append_node(analysis);for (it v_str.begin(); it ! v_str.end(); it) {xml_node* soinfo doc.allocate_node(node_element, soinfo, NULL);soinfo-append_attribute(doc.allocate_attribute(key, it-c_str()));analysis-append_node(soinfo);}xml_node* Output doc.allocate_node(node_element, Output, NULL);node-append_node(Output);xml_node* outinfo doc.allocate_node(node_element, outinfo, NULL);Output-append_node(outinfo);for (int j 0;j 2; j) {xml_node* type doc.allocate_node(node_element, desc, NULL); //分配一个type节点type-append_attribute(doc.allocate_attribute(path, 123));type-append_attribute(doc.allocate_attribute(relation, 345));type-append_attribute(doc.allocate_attribute(priority, 567));outinfo-append_node(type); //把type节点添加到节点outinfo中}for (it v_str.begin(); it ! v_str.end(); it) {xml_node* rule doc.allocate_node(node_element, rule, NULL);Output-append_node(rule);for (int i 0; i 2 ; i) {xml_node* cond doc.allocate_node(node_element, cond, NULL);cond-append_attribute(doc.allocate_attribute(key, 123));cond-append_attribute(doc.allocate_attribute(value, 345));cond-append_attribute(doc.allocate_attribute(relation,567));rule-append_node(cond);}xml_node* out doc.allocate_node(node_element, out, NULL);out-append_attribute(doc.allocate_attribute(where, it-c_str()));rule-append_node(out);}doc.append_node(node);std::ofstream pout(config.xml);pout doc;return 0; }下面是生成的xml文件 config.xml ?setting.xml version1.0 encodingutf-8 ? rootAnalysissoinfo key111111/soinfo key222222/soinfo key333333/soinfo key444444//AnalysisOutputoutinfodesc path123 relation345 priority567/desc path123 relation345 priority567//outinforulecond key123 value345 relation567/cond key123 value345 relation567/out where111111//rulerulecond key123 value345 relation567/cond key123 value345 relation567/out where222222//rulerulecond key123 value345 relation567/cond key123 value345 relation567/out where333333//rulerulecond key123 value345 relation567/cond key123 value345 relation567/out where444444//rule/Output /root
http://www.dnsts.com.cn/news/254047.html

相关文章:

  • 万维网网站注册输入姓名查询个人征信
  • 杭州网站定制前端开发工作
  • 企业网站代码建设网站投资多少
  • 做响应式网站网站建设运维情况自查报告
  • 网站开发自荐信网站脑图怎么做
  • 石碣镇网站建设东莞企业做网站
  • 企业网站修改流程40岁以上的设计师都去哪了
  • 网站开发一键上架淘宝柳市网站优化
  • dw软件下载官方网站黄骅怎么读
  • 做淘宝客网站备案要怎么写温州品牌网站设计
  • 注册网站需要多久网站备案 厦门
  • 天山网站最近中文字幕在线mv免费
  • 温州建设集团招聘信息网站wordpress 监测插件
  • 宁德市住房和城乡建设局网站营销网站建设都是专业技术人员吗
  • 网站空间建设html5深圳网站开发
  • 凡科小程序建站官网视觉asp网站源码
  • 做一个网站开发项目有哪些阶段电子商务网站建设精品课程
  • 江门搜索引擎网站推广免费咨询话术
  • 重庆大渡口营销型网站建设公司哪家专业徐州做网站的公司
  • 中英文网站是怎么做的重庆网站建设慕枫
  • 龙华区深圳北站.net网站开发实训体会
  • 公司网站设计用什么聊城市住房和城乡建设局网站首页
  • 东莞网站推广流程做营销网站应该要注意些什么
  • 网站程序结构网站域名com和cn
  • 网站设置字体样式南京品牌网站开发模板
  • php网站开发主要内容网页设计教程教学目的
  • 在合肥哪里学网站建设洛阳 网站建设公司哪家好
  • 制作 网站 盈利一级a做爰片软件网站
  • 网站建设与维护的论述题二级域名大全
  • 河南住房城乡建设部网站wordpress 速度