Given the following XML:
Max
Jen
&l
Try this:
$(xml).find("user[sex='m'][state='CA'], user[sex='m'][state='NV']")
Basically you chain the sex and state attributes together in a single simple selector (this would be your logical AND), and repeat them once per state (and this would be your logical OR).
Test:
$(xml).find("user[sex='m'][state='CA'], user[sex='m'][state='NV']")
.each(function() {
alert($(this).text() + " - " + $(this).attr('state'));
});
Output:
Max - CA
Bob - NV
Jon - CA