Xpath expression with multiple predicates

后端 未结 4 1761
庸人自扰
庸人自扰 2020-12-14 00:01

I am trying to build a complex xpath expression which will answer the following condition.

From the XML data below, returns the User entity which:

4条回答
  •  被撕碎了的回忆
    2020-12-14 00:39

    Assuming users is the root:

    /users/user[login='user1' and name='User 1' 
                and (profile='admin' and profile='operator')]
    

提交回复
热议问题