title: Need to find value of element in XML
body: <p>Sample XML:</p>
  
  <pre><code>&lt;parts&gt;
      &lt;title&gt;computer parts&lt;/title&gt;
      &lt;components&gt;
          &lt;hardware&gt;motherboard&lt;/hardware&gt;
          &lt;id&gt;1234&lt;/id&gt;
      &lt;/components&gt;
      &lt;part&gt;
          &lt;item&gt;motherboard&lt;/item&gt;
          &lt;manufacturer&gt;asus&lt;/manufacturer&gt;
          &lt;model&gt;p3b-f&lt;/model&gt;
          &lt;cost&gt; 123.00&lt;/cost&gt;
      &lt;/part&gt;
      &lt;components&gt;
          &lt;hardware&gt;video card&lt;/hardware&gt;
          &lt;id&gt;2345&lt;/id&gt;
      &lt;/components&gt;
      &lt;part&gt;
          &lt;item&gt;video card&lt;/item&gt;
          &lt;manufacturer&gt;ati&lt;/manufacturer&gt;
          &lt;model&gt;all-in-wonder pro&lt;/model&gt;
          &lt;cost&gt; 160.00&lt;/cost&gt;
      &lt;/part&gt;
      &lt;components&gt;
          &lt;hardware&gt;sound card&lt;/hardware&gt;
          &lt;id&gt;3456&lt;/id&gt;
      &lt;/components&gt;
      &lt;part&gt;
          &lt;item&gt;sound card&lt;/item&gt;
          &lt;manufacturer&gt;creative labs&lt;/manufacturer&gt;
          &lt;model&gt;sound blaster live&lt;/model&gt;
          &lt;cost&gt; 80.00&lt;/cost&gt;
      &lt;/part&gt;
  &lt;/parts&gt;
  </code></pre>
  
  <p>In the above sample XML, I need to first search for the value <code>motherboard</code> in the <code>components</code> element; if the value is found there, then we need to search the value in the <code>&lt;part&gt;</code> element under the <code>item</code> tag, if the value is available in the <code>item</code> tag, then we should get the value of the <code>model</code> tag.</p>
  
  <p>Note: I have highlighted the values that need to be searched and value that needs to be extracted.</p>
  
  <p>How can I do that in Bash?</p>