I have the following XML:
<users>
<user>
<location>ny</location>
<status>1</status>
</user>
<user>
<location>nj</location>
<status>1</status>
</user>
<user>
<location>pa</location>
<status>50</status>
</user>
</users>
What I actually need is all users in ny or nj who also have a status of 1.
Based on the previous answers and some additional Googling I came up with:
/users/user[location='ny' and status='1']|/users/user[location='nj' and status='1'
Is there a less verbose to write this? i.e. more along the lines of:
/users/user[location='ny' | 'pa'] and /users/user[status='1']