title: how to extract the name attribute from string array?
body: <p>Hi I build a quiz application.
  I have the following (values/)question.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
  &lt;string-array name="question"&gt;
  &lt;item name="correct"&gt;A&lt;/item&gt;
  &lt;item name="wrong"&gt;B&lt;/item&gt;
  &lt;item name="wrong"&gt;C&lt;/item&gt;
  &lt;item name="wrong"&gt;D&lt;/item&gt;
  &lt;/string-array&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>I would like to have a question with four possible answers but when i retrieve my answers in Java.. I don't know which answer is correct. So I decided to use name attribute in the item tags to pass a value of 'correct' or 'wrong' answer.
  Is there anyway to get the name along with the tag value?</p>
  
  <p>because when i use String[] test = res.getStringArray(R.array.question); I can only get the value of each item in my array.</p>
  
  <p>or because this is my 1st time in Android. is there other suitable approach to do this?</p>
  
  <p>thanks</p>