遍历属性和命名空间节点

attribute 和 namespace 轴包含元素的所有属性和命名空间节点。@ 的快捷方式代表 attribute::,因此以下内容是等效的:

child::div/attribute::class
div/@class