title: Xpath multiple filter select
body: <p>I am trying to achieve the following with Xpath but I can't get the selection to work.....</p>
  
  <p>I have the following scenario:</p>
  
  <p>Gender either male or female
  Brandname: BrandA or BrandB or BrandC or BrandD</p>
  
  <p>I want to select all MALE attributes with only BrandA, BrandB, and BrandC</p>
  
  <p>If I use the following;</p>
  
  <pre><code>/node[gender[1] = "male"] (perfect selects only the male products)
  
  /node[gender[1] = "male" and brand[1][contains(.,"BrandA")]](perfect Xpath selects only the male products with the BrandA)
  </code></pre>
  
  <p>So far so good but if I use the beneath standing is doesn't select anything....</p>
  
  <pre><code>/node[gender[1] = "male" and brand[1][contains(.,"BrandA")] and brand[1][contains(.,"BrandB")]]
  </code></pre>
  
  <p>Any suggestions? what am I doing wrong?</p>
  
  <p>Thanks!!</p>