XPath contains one of multiple values

后端 未结 3 2003
自闭症患者
自闭症患者 2020-12-05 13:31

I have simple xpath

 /products/product[contains(categorie,\'Kinderwagens\')] 

It works but now how do I filter on multiple categorie values

3条回答
  •  孤街浪徒
    2020-12-05 14:03

    Will this work?

    /products/product[contains(categorie,'Kinderwagens') or contains(categorie,'Wonderwagens')]
    

    There is a similar question here

提交回复
热议问题