更新时间:2023-01-26 08:43:54
尝试:
//CD[COUNTRY/text()="EU"]/*[self::TITLE or self::YEAR or self::PRICE]
它只选择那些EU
为COUNTRY
的CD
,然后选择所有标签名称等于TITLE的孩子
或 YEAR
或 PRICE
.
It selects only those CD
s that have EU
as COUNTRY
and then selects all children having the tag name equal to TITLE
or YEAR
or PRICE
.