为了找到所有具有名称的属性myAttr在文档中我可以这样做//@myAttr但是如果我想指定根并仍然在文档中查找具有该名称的所有属性怎么办?就像是/root/{whatever_or_nothing}/@myAttribute
myAttr
//@myAttr
/root/{whatever_or_nothing}/@myAttribute
这样怎么样:
/root//@myAttribute