Android XML Parsing with specific values
<p>I have a XML document with the following format:</p>

<pre><code>&lt;title&gt;
  &lt;str name = "A"&gt;text&lt;/str&gt;
  &lt;str name = "B"&gt;more text&lt;/str&gt;
  &lt;arr name = R&gt; 
     &lt;str&gt; text &lt;/str&gt; 
  &lt;/arr&gt;
  &lt;str name = "C"&gt;more texts&lt;/str&gt;
&lt;/title&gt;
</code></pre>

<p>How do I parse each one separately? i.e parse item if it matches "A" then parse item with value B? The tutorials I have seen doesn't have a format like this. </p>

<p>I am checking for the specific value at the start like this:
static final String KEY_TITLE = "title"; // parent node
static final String KEY_A =  (How do I check for the str name equaling A here? )</p>
