title: parse two different XML files at one time in listview android
body: <p>I am working on xml in my android project and I am a beginner. i have a same xml in different language too like that</p>
  
  <pre><code>&lt;sura index="1" 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;
  </code></pre>
  
  <p>this one is in arabic</p>
  
  <pre><code>&lt;sura index="1" name="الفاتحة"&gt;
      &lt;aya index="1" text="In the name of Allah, most benevolent, ever-merciful."/&gt;
      &lt;aya index="2" text="ALL PRAISE BE to Allah, Lord of all the worlds,"/&gt;
      &lt;aya index="3" text="Most beneficent, ever-merciful,"/&gt;
      &lt;aya index="4" text="King of the Day of Judgement."/&gt;
      &lt;aya index="5" text="You alone we worship, and to You alone turn for help."/&gt;
      &lt;aya index="6" text="Guide us (O Lord) to the path that is straight,"/&gt;
      &lt;aya index="7" text="The path of those You have blessed, Not of those who have earned Your anger, nor those who have gone astray."/&gt;
  &lt;/sura&gt;
  </code></pre>
  
  <p>this one in english.</p>
  
  <p>I have successfully done parsing for aya in arabic using this code</p>
  
  <pre><code>private List&lt;String&gt; getAllAyaFromSuraIndex(String suraIndex) throws XmlPullParserException, IOException {
       list = new ArrayList&lt;&gt;();
  
      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")) {
              String index = parser.getAttributeValue(0);
  
              // Match given sure index
              if (index.equals(suraIndex)) {
                  // Move to first aya tag inside matched sura index
                  parser.next();
  
                  // This loop will exit when it reaches sura end tag &lt;/sura&gt;
                  while (parser.getName().equals("aya")) {
                      if (parser.getEventType() == XmlPullParser.START_TAG) {
                          list.add(parser.getAttributeValue(null,"index") + ".\n" + parser.getAttributeValue(null,"text"));
                      }
  
                      // Move to next aya tag
                      parser.next();
                  }
  
                  break;
              }
          }
  
          parser.next();
      }
  
      return list;
  }
  </code></pre>
  
  <p>I have a listview with two textviews one for arabic and one for english. I tried everything but not getting the results.</p>