title: use xpath to select elements with a set of multiple attributes/values
body: <p>I have an XML document that i need to strip out particular pieces of data</p>
  
  <p>the xml document has a structure as follows:-</p>
  
  <pre><code>&lt;a&gt;
     &lt;b select='yes please'&gt;
         &lt;c d='text1' e='text11'/&gt;
         &lt;c d='text2' e='text12'/&gt;
         &lt;c d='text3' e='text13'/&gt;
         &lt;c d='text4' e='text14'/&gt;
         &lt;c d='text5' e='text15'/&gt;
     &lt;/b&gt;
   &lt;/a&gt;
  &lt;a&gt;
     &lt;b select='no thanks'&gt;
         &lt;c d='text1' e='text21'/&gt;
         &lt;c d='text3' e='text23'/&gt;
         &lt;c d='text5' e='text25'/&gt;
     &lt;/b&gt;
   &lt;/a&gt;
  &lt;a&gt;
     &lt;b select='yes please'&gt;
         &lt;c d='text1' e='text31'/&gt;
         &lt;c d='text2' e='text32'/&gt;
         &lt;c d='text3' e='text33'/&gt;
         &lt;c d='text4' e='text34'/&gt;
         &lt;c d='text5' e='text35'/&gt;
     &lt;/b&gt;
   &lt;/a&gt;
  &lt;a&gt;
     &lt;b select='no thanks'&gt;
         &lt;c d='text4' e='text41'/&gt;
         &lt;c d='text3' e='text43'/&gt;
         &lt;c d='text5' e='text45'/&gt;
     &lt;/b&gt;
   &lt;/a&gt;
  </code></pre>
  
  <p>i need to select only those /a/b element groups that have d attribute = 'text1' and
  d attribute = 'text4', once i have identified these sub documents i want to get the value of the e attributes with d attribute value 'text5'</p>
  
  <p>hope thats clear</p>
  
  <p>Cheers</p>
  
  <p>DD</p>