title: Return multiple data elements
body: <p>Using Xquery, how can I search the file below (consisting of many items), for all items with 'XC' in the part-number (there are many), then for matches return all 3 of the interesting data elements (part-number, part-name, and name)?  The return is the main problem--my attempts result in every permutation of the interesting data elements.  Thank you!</p>
  
  <pre><code>    
  &lt;catalog&gt;
     &lt;item&gt;
       &lt;description&gt;
      &lt;partref&gt;
         &lt;part-id&gt;
          &lt;part-number&gt;XC51222&lt;/part-number&gt;
         &lt;/part-id&gt;
      &lt;/partref&gt;
      &lt;part-name&gt;DSP, Network Vectoring&lt;part-name&gt;
      &lt;vendors&gt;
         &lt;vendor1&gt;
          &lt;pay-to&gt;
             &lt;name&gt;JCOF Industries&lt;/name&gt;
          &lt;/pay-to&gt;
         &lt;/vendor1&gt;
      &lt;/vendors&gt;
        &lt;/description&gt;
     &lt/item&gt;
     &ltitem&gt;
     &lt/item&gt;
  [many items…]
  &lt;/catalog>
  </code></pre>