title: Parsing XML using XmlPullParser for specific tags?
body: <p>Hey I have just started work on XML parsing in android. I am working 
   on xml which has a structure like this.</p>
  
  <pre><code>        &lt;quran&gt;
          &lt;sura index="113" name="الفلق"&gt;
                  &lt;aya index="1" text="قُلْ أَعُوذُ بِرَبِّ الْفَلَقِ" bismillah="بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيمِ" /&gt;
                  &lt;aya index="2" text="مِنْ شَرِّ مَا خَلَقَ" /&gt;
                  &lt;aya index="3" text="وَمِنْ شَرِّ غَاسِقٍ إِذَا وَقَبَ" /&gt;
                  &lt;aya index="4" text="وَمِنْ شَرِّ النَّفَّاثَاتِ فِي الْعُقَدِ" /&gt;
                  &lt;aya index="5" text="وَمِنْ شَرِّ حَاسِدٍ إِذَا حَسَدَ" /&gt;
              &lt;/sura&gt;
              &lt;sura index="114" name="الناس"&gt;
                  &lt;aya index="1" text="قُلْ أَعُوذُ بِرَبِّ النَّاسِ" bismillah="بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيمِ" /&gt;
                  &lt;aya index="2" text="مَلِكِ النَّاسِ" /&gt;
                  &lt;aya index="3" text="إِلَهِ النَّاسِ" /&gt;
                  &lt;aya index="4" text="مِنْ شَرِّ الْوَسْوَاسِ الْخَنَّاسِ" /&gt;
                  &lt;aya index="5" text="الَّذِي يُوَسْوِسُ فِي صُدُورِ النَّاسِ" /&gt;
                  &lt;aya index="6" text="مِنَ الْجِنَّةِ وَالنَّاسِ" /&gt;
              &lt;/sura&gt;
          &lt;/quran&gt;
  </code></pre>
  
  <p>Now in my first class I just want to show a list view in which just 
  name of a sura is mentioned, which I have done successfully using this 
  code.</p>
  
  <pre><code> XmlPullParser parser = getResources().getXml(R.xml.quran_arabic);
  
          while (parser.getEventType() != XmlPullParser.END_DOCUMENT) {
              if (parser.getEventType() == XmlPullParser.START_TAG &amp;&amp; parser.getName().equals("sura")) {
                  list.add(parser.getAttributeValue(0) + ".\n" + parser.getAttributeValue(1));
              }
              parser.next();
          }
  </code></pre>
  
  <p>In my lisview only name of sura is showing now I want to show the aya tags of specific sura on which user will click.
  In my next activity I am using this code</p>
  
  <pre><code> XmlPullParser parser = getResources().getXml(R.xml.quran_arabic);
  
          while (parser.getEventType() != XmlPullParser.END_DOCUMENT) {
              if (parser.getEventType() == XmlPullParser.START_TAG &amp;&amp; parser.getName().equals("aya")) {
                  list.add(parser.getAttributeValue(0) + ".\n" + parser.getAttributeValue(1));
              }
              parser.next();
          }
  </code></pre>
  
  <p>But I am getting all aya tags attributes instead of specific sura. Please help me to get just those aya which is present on a specific tag on which user will clicked. I just posted 2 tags of sura in xml actually i have 114 so please help me to use the right code. Sorry I am not good in english. Just help me out. Thanks :(</p>