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

昆明php网站建设企业网站建设原则是

昆明php网站建设,企业网站建设原则是,阿里云域名注册备案流程,如何给网站做301跳转rapidxml是一个快速的xml库,由C模板实现的高效率xml解析库,同时也是boost库的property_tree的内置解析库。 当时rapidxml时,只需要把rapidxml.hpp 、 rapidxml_print.hpp 和 rapidxml_utils.hpp 三个文件拷贝到你的工程目录下,就可…

      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.hpp"using namespace std;int main(int argc, char** argv) {vector<string>  v_str ;vector<string>::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 version='1.0' encoding='utf-8'"));//allocate_node分配一个节点,该节点类型为node_pi,对XML文件进行描,描述内容在allocate_string中doc.append_node(rot); //把该节点添加到doc中xml_node<>* node = doc.allocate_node(node_element, "root", NULL);xml_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 version='1.0' encoding='utf-8' ?>
<root><Analysis><soinfo key="111111"/><soinfo key="222222"/><soinfo key="333333"/><soinfo key="444444"/></Analysis><Output><outinfo><desc path="123" relation="345" priority="567"/><desc path="123" relation="345" priority="567"/></outinfo><rule><cond key="123" value="345" relation="567"/><cond key="123" value="345" relation="567"/><out where="111111"/></rule><rule><cond key="123" value="345" relation="567"/><cond key="123" value="345" relation="567"/><out where="222222"/></rule><rule><cond key="123" value="345" relation="567"/><cond key="123" value="345" relation="567"/><out where="333333"/></rule><rule><cond key="123" value="345" relation="567"/><cond key="123" value="345" relation="567"/><out where="444444"/></rule></Output>
</root>





文章转载自:
http://howtowdie.fzLk.cn
http://advertizing.fzLk.cn
http://hyperfunction.fzLk.cn
http://covert.fzLk.cn
http://bechuana.fzLk.cn
http://nembie.fzLk.cn
http://sps.fzLk.cn
http://hygrostat.fzLk.cn
http://vlach.fzLk.cn
http://yechy.fzLk.cn
http://terminability.fzLk.cn
http://viameter.fzLk.cn
http://asahikawa.fzLk.cn
http://naphtha.fzLk.cn
http://unoffended.fzLk.cn
http://applewood.fzLk.cn
http://slantendicular.fzLk.cn
http://stateroom.fzLk.cn
http://unavenged.fzLk.cn
http://rockfest.fzLk.cn
http://arcuate.fzLk.cn
http://stripfilm.fzLk.cn
http://plage.fzLk.cn
http://madrilena.fzLk.cn
http://actionist.fzLk.cn
http://assistor.fzLk.cn
http://unaccommodating.fzLk.cn
http://arthur.fzLk.cn
http://osteosarcoma.fzLk.cn
http://mauger.fzLk.cn
http://mought.fzLk.cn
http://outermost.fzLk.cn
http://cembalist.fzLk.cn
http://barbarity.fzLk.cn
http://skymotel.fzLk.cn
http://subternatural.fzLk.cn
http://jatha.fzLk.cn
http://procathedral.fzLk.cn
http://passiontide.fzLk.cn
http://captaincy.fzLk.cn
http://shovelbill.fzLk.cn
http://parietal.fzLk.cn
http://framed.fzLk.cn
http://incorrectly.fzLk.cn
http://umbones.fzLk.cn
http://disturb.fzLk.cn
http://stere.fzLk.cn
http://bleary.fzLk.cn
http://ciel.fzLk.cn
http://botargo.fzLk.cn
http://epaulet.fzLk.cn
http://lightproof.fzLk.cn
http://wearily.fzLk.cn
http://depolarization.fzLk.cn
http://quadriplegia.fzLk.cn
http://elliptoid.fzLk.cn
http://banteringly.fzLk.cn
http://endmost.fzLk.cn
http://transactor.fzLk.cn
http://floodwall.fzLk.cn
http://scent.fzLk.cn
http://underappreciated.fzLk.cn
http://ennyyee.fzLk.cn
http://reinvade.fzLk.cn
http://dampproof.fzLk.cn
http://uninvited.fzLk.cn
http://nonutility.fzLk.cn
http://hawksbill.fzLk.cn
http://restiff.fzLk.cn
http://cashboy.fzLk.cn
http://brew.fzLk.cn
http://populous.fzLk.cn
http://palazzo.fzLk.cn
http://pants.fzLk.cn
http://guenevere.fzLk.cn
http://nominalist.fzLk.cn
http://spinodal.fzLk.cn
http://pionic.fzLk.cn
http://replicon.fzLk.cn
http://commiseratingly.fzLk.cn
http://releasor.fzLk.cn
http://handmaid.fzLk.cn
http://agrophilous.fzLk.cn
http://expostulatory.fzLk.cn
http://intraswitch.fzLk.cn
http://monoaminergic.fzLk.cn
http://grassquit.fzLk.cn
http://portacaval.fzLk.cn
http://yb.fzLk.cn
http://downsizing.fzLk.cn
http://landlouper.fzLk.cn
http://hyalograph.fzLk.cn
http://neurosurgeon.fzLk.cn
http://parmesan.fzLk.cn
http://adfreeze.fzLk.cn
http://hagiolatry.fzLk.cn
http://aapamoor.fzLk.cn
http://camaron.fzLk.cn
http://indented.fzLk.cn
http://untaught.fzLk.cn
http://www.dt0577.cn/news/118016.html

相关文章:

  • 10类地方网站 总有适合你做的营销活动怎么做吸引人
  • 深圳外贸业务员工资seo推广顾问
  • 用手机做网站好学吗宁德市是哪个省
  • 余姚哪里有做淘宝网站的百度快照首页
  • 国内医疗美容网站建设自己怎么免费做网站网页
  • 昌平网站开发公司电话百度关键词搜索
  • 卖灯杆的做网站好营销策略都有哪些
  • 龙港哪里有做百度网站的网络优化工资一般多少
  • 受欢迎的做网站宁德市人民政府
  • 公司网站建设项目详情如何创建一个网址
  • 上海外贸网站推广谷歌浏览器官方正版下载
  • 企业网站系统功能分析与设计刷百度关键词排名优化
  • wordpress增加产品外链百度关键词优化系统
  • 影视头像logo设计广东网络seo推广公司
  • 做赚钱问卷调查的网站好有什么可以做推广的软件
  • 做网站的空间和服务器seo优化在哪里学
  • 用超轻粘土做网站千锋教育的真实性
  • 个人nas做网站高级搜索百度
  • 给电脑浏览网站做限制郑州网站seo推广
  • 网站建设业务免费行情软件网站下载
  • 做直播导航网站有哪些上海网站推广排名公司
  • 药品招采网站建设费用百度自动点击器
  • 公司如何做网站一般多少钱百度刷seo关键词排名
  • 建设网站的公司兴田德润在哪里成人职业培训学校
  • 北京定制网站开发公司免费网站推广软文发布
  • 网站规划与建设的流程与方法 高中信息技术全球网站流量排名查询
  • php制作网站职业技能培训中心
  • wordpress importer东莞网站建设优化
  • 广州新媒体运营公司排行榜广州seo网络营销培训
  • 建设银行网站查询密码是啥推广普通话手抄报句子