1、查找空节点
//*[not(text())]        表示内容为空的节点
//*[count(*)=0]         表示没有子节点的节点
"//*[count(*)=0 and not(text())]"  空节点,表示既没有内容,也没有子节点,但未排除包含属性的节点

posted on 2014-03-10 15:04  特别  阅读(230)  评论(0编辑  收藏  举报