Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有一种 xpath 方法来查找具有给定属性且值包含给定字符串的节点?
例如,我有一个 xml 文档,想找到一个address属性包含 string的节点Downing,这样我就可以找到以下节点:
address
Downing
<person name="blair" address="10 Downing St. London"/>
select="//*[contains(@address,'Downing')]"