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