【发布时间】:2014-06-26 06:05:14
【问题描述】:
我无法根据第一个属性获取第二个属性的值。
我尝试获取内容属性的值。即4,450 来自以下 XML:
<meta itemprop="price" content=" 4,450" />
尝试使用此 XPath://meta[@itemprop=\"price\"][@content]
但我得到的输出类似于输入 XML。
【问题讨论】:
-
考虑接受提供的答案。谢谢。
标签: xpath attributes