1、Qt5.3.2(VS2010 OpenGL)

  1.1、查找节点的 带NameSpace的属性

  参考网址:https://stackoverflow.com/questions/7872413/how-to-get-attributes-in-libxml2-and-save-in-stl-map-for-c

QString TtuYuan::NodeNsAttr(xmlNode* _pNode, xmlChar* _pcAttrName)
{
QString strRst = "";
for (xmlAttr* attr=_pNode->properties; attr!= NULL; attr=attr->next)
{
if ( ( == xmlStrcasecmp(_pcAttrName, attr->name)) && (attr->ns != NULL) )
{
xmlChar *pcAttrValue = xmlGetNsProp(_pNode, attr->name, attr->ns->href);
strRst = (char*)pcAttrValue;
}
}
return strRst;
}

  1.2、strcasecmp是 不区分大小写的,strcmp是区分大小写的,可以写测试代码 看下结果

2、

3、

4、

5、

最新文章

  1. android nfc中Ndef格式的读写
  2. Redis的使用模式之计数器模式实例
  3. 使用Innosetup制作安装包的一些技巧
  4. git merge简介【转】
  5. LeeCode(Database)-Duplicate Emails
  6. openwrt 新版IPV6问题
  7. SQLite For .Net 已经整合了32位和64位
  8. Javascript学习6 - 类、对象、继承
  9. 钉钉 机器人接入 自定义webhook
  10. Git:九、删除项目
  11. 用IntelliJ IDEA 开发Spring+SpringMVC+Mybatis框架 分步搭建二:配置MyBatis 并测试(1 构建目录环境和依赖)
  12. Jenkins Jenkins结合GIT Maven持续集成环境配置
  13. JS模块化开发(三)——seaJs+grunt
  14. 水池问题的lua语言算法(面试题分析:我的Twitter技术面试失败了)
  15. python3之Splash
  16. 每日一水 POJ8道水题
  17. 使用Spec Markdown 编写手册文档
  18. C#中==操作符存在的缺陷
  19. 加法变乘法——第六届蓝桥杯C语言B组(省赛)第六题
  20. table中实现数据上移下移效果

热门文章

  1. 柳暗花明又一村的———for循环
  2. Java的类的详解
  3. 标准库 time
  4. linux nfs服务配置挂载以及oracle使用nfs存储挂载注意事项
  5. 两步完成利用procdump64+mimikatz获取win用户密码
  6. 2018-2019-1 20189206 《Linux内核原理与分析》第三周作业
  7. Eclipse查看Servlet源码
  8. fastjson常用方法
  9. ChromeDriver与Chrome版本对应关系
  10. C#趋势图(highcharts插件)