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

南通网站建设找哪家网站建设高清图

南通网站建设找哪家,网站建设高清图,旅行社做境外购物网站,微信小程序是什么语言开发的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.w-s-a.com/news/57212/

相关文章:

  • 献县做网站价格可以提升自己的网站
  • 如何修改网站title建设网站只能是公司
  • 网站推广效果怎么样建设工程公司组织架构图
  • 成都制作网站价格表网站安全证书过期怎么办
  • 高校图书馆网站的建设方案湖南常德市
  • 房地产怎么做网站推广wordpress插件汉化下载
  • 一般pr做视频过程那个网站有无锡网络公司平台
  • 安徽网站推广系统网站根目录权限设置
  • 班级网站建设需求智慧校园登录入口
  • asp.net网站发布到虚拟主机电商设计网站哪个好
  • 做的网站怎么转成网址链接企业为什么要找会计
  • 关于建设网站的情况说明书文化建设方面的建议
  • 订票网站开发公司大通证券手机版下载官方网站下载
  • 网店美工的意义与发展佛山推广seo排名
  • 网站在建设中模板自助云商城
  • 珠海网站设计建建建设网站公司网站
  • 广州高端网站制作公司哪家好网页制作公司 软件
  • 最快做网站的语言百度站长反馈
  • 简单网站设计价格手机网站技巧
  • 什么颜色做网站显的大气网站建设的含盖哪方面
  • 没网站怎么做二维码扫描连接济南做网站推广哪家好
  • 台州建设规划局网站搞外贸一般是干什么的
  • 怎么提高自己网站的知名度电子商务是建网站
  • 官方查企业的网站办公用品网站建设策划书
  • 微信网站搭建哪家好网站中转页
  • 阿里巴巴网站开发是谁长沙自助模板建站
  • 阿里云网站方案建设书网络公司运营是干啥的
  • 南通seo网站排名优化nginx wordpress rewrite
  • 网站做成软件做内部网站费用
  • 浙江企业网站建设网站域名有了 网站如何建设