我有简单的 xpath
/products/product[contains(categorie,'Kinderwagens')]
它有效,但现在如何过滤多个类别值
喜欢
/products/product[contains(categorie,'Kinderwagens')] +
/products/product[contains(categorie,'Kinderwagens')]
最佳答案
这会起作用吗?
/products/product[contains(categorie,'Kinderwagens') or contains(categorie,'Wonderwagens')]
有一个类似的问题here
关于XPath 包含多个值之一,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12152890/