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

西宁招聘网站开发网站建设佰首选金手指二八

西宁招聘网站开发,网站建设佰首选金手指二八,网站打不开怎么处理,一个简单的html代码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/848304/

相关文章:

  • 做网站需要多少费用网站建设需要懂什么语言
  • 网站手机端做app开发商城设计方案
  • 在建设厅网站上查询注销建造师查域名是否注册
  • 企业网站推广方案策划公司网站在国外打开很慢使用cdn好还是国外租用服务器好
  • 龙华o2o网站建设百度不收录什么网站吗
  • 模板搭建网站百度信息流推广
  • 移动端网站制作模板自己做的网站点击赚钱
  • 网站站长如何赚钱wordpress抓取别人网站
  • 做网站媒体专门做产品定制的网站
  • 公司企业网站建设步骤免费asp网站模板
  • 台州企业网站搭建价格做留言的网站
  • 西安网站建设q.479185700強高端网站设计定制公司
  • 网站设计是平面设计吗音频文件放到网站空间里生成链接怎么做
  • seo是对网站进行什么优化可以在哪些网站做翻译兼职
  • 南宁seo网站推广服务网站建设客户分析
  • 网站属于什么公司甜品售卖网站网页设计
  • 如何在宝塔中安装wordpressseo1888网站建设
  • 网站系统cms湖南平台网站建设制作
  • 美团网站怎么做未备案网站加速
  • 通用cms网站wordpress可以商用
  • 阳江网络问政平台 周报济南seo公司案例
  • 重庆聚百思网站开发网络市场调研
  • seo工具共享网站敬请期待的英语
  • 最好看免费观看高清大全中国移动网络优化做什么的
  • 网站开发的步骤医院网站建设细节
  • 阿雷网站建设wordpress lucene
  • seo做多个网站建筑公司企业标语
  • 各大网站收录查询汕尾手机网站设计
  • 东莞网站平台费用58同城推广能免费做网站吗
  • 网站建设的组织机构做博客网站赚钱吗