title: Get XML attribute value based on parent element and value
body: <p>I'd like to assign the values of the attributes in the xml below to variables. But I'm having trouble figuring out the syntax for referring to the attribute I want. For instance, how would I refer to the attribute called "qatest" that is </p>
  
  <ul>
  <li>a child element of "asr"</li>
  <li><p>has the value of "en-US"</p>
  
  <pre><code>&lt;asr&gt;
      &lt;item qatest="http://app05-test.qa.example.com:8080/asr/status" qadmz="http://qadmz92.dmz.example.com:8080/asr/status"&gt;en-US&lt;/item&gt;
      &lt;item qatest="http://app12-test.qa.example.com:8080/asr/status" qadmz="http://qadmz98.dmz.example.com:8080/asr/status"&gt;en-GB&lt;/item&gt;
      &lt;item qatest="http://app10-test.qa.example.com:8080/asr/status" qadmz="http://qadmz97.dmz.example.com:8080/asr/status"&gt;fr-FR&lt;/item&gt;
      &lt;item qatest="http://app10-test.qa.example.com:8080/asr/status" qadmz="http://qadmz97.dmz.example.com:8080/asr/status"&gt;it-IT&lt;/item&gt;
      &lt;item qatest="http://app10-test.qa.example.com:8080/asr/status" qadmz="http://qadmz97.dmz.example.com:8080/asr/status"&gt;de-DE&lt;/item&gt;
      &lt;item qatest="http://app10-test.qa.example.com:8080/asr/status"  qadmz="http://qadmz97.dmz.example.com:8080/asr/status"&gt;pt-BR&lt;/item&gt;
      &lt;item qatest=http://app10-test.qa.example.com:8080/asr/status"" qadmz="http://qadmz97.dmz.example.com:8080/asr/status"&gt;ru-RU&lt;/item&gt;
      &lt;item qatest="http://app12-test.qa.example.com:8080/asr/status" qadmz="http://qadmz98.dmz.example.com:8080/asr/status"&gt;zh-CN&lt;/item&gt;
      &lt;item qatest="http://app12-test.qa.example.com:8080/asr/status" qadmz="http://qadmz98.dmz.example.com:8080/asr/status"&gt;ja-JP&lt;/item&gt;
      &lt;item qatest="http://app12-test.qa.example.com:8080/asr/status" qadmz="http://qadmz98.dmz.example.com:8080/asr/status"&gt;ko-KR&lt;/item&gt;
  &lt;/asr&gt;
  
  &lt;lmtt&gt;
      &lt;item qatest="http://app14-test.qa.example.com:8080/lmtt/status" qadmz="http://qadmz94.dmz.example.com:8080/lmtt/status"&gt;all&lt;/item&gt;
  &lt;/lmtt&gt;
  </code></pre></li>
  </ul>
  
  <p>I have found this code so far, but it isn't specific enough to know what parent element and what value the attribute are related to</p>
  
  <pre><code>attrValue = xml.GetAttrValue("qatest")
  </code></pre>
  
  <p>I struggle with XML terminology still, so please ask if I've used an incorrect term.</p>