标签:convert ted 属性 xxx 节点 attribute span pac 全面
attribute 选取当前节点的所有属性
attribute轴选取当前节点的所有属性,获取的结果是属性而不是节点,全面所有的轴都是选取节点。
/AAA/BBB/attribute::* 选取/AAA/BBB节点的所有属性
<AAA>
<BBB aaa = "111" bbb = "222">
<CCC/>
<CCC xxx = "555" yyy = "666" zzz = "777"/>
</BBB>
<BBB aaa = "999">
<CCC xxx = "qq"/>
<DDD xxx = "ww"/>
<EEE xxx = "oo"/>
</BBB>
<BBB>
<DDD xxx = "oo"/>
</BBB>
</AAA>
//CCC/attribute::* 选取所有CCC节点的所有属性
<AAA>
<BBB aaa = "111" bbb = "222">
<CCC/>
<CCC xxx = "555" yyy = "666" zzz = "777"/>
</BBB>
<BBB aaa = "999">
<CCC xxx = "qq"/>
<DDD xxx = "ww"/>
<EEE xxx = "oo"/>
</BBB>
<BBB>
<DDD xxx = "oo"/>
</BBB>
</AAA>
标签:convert ted 属性 xxx 节点 attribute span pac 全面
原文地址:https://www.cnblogs.com/zhanglinfei/p/11474600.html