title: How to play songs using XML in my Android application?
body: <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!-- generator="FeedCreator 1.7.2"--&gt;
  &lt;rss version="2.0"&gt;
    &lt;strings&gt;
      &lt;level&gt;one&lt;/level&gt;
    &lt;/strings&gt;
    &lt;item&gt;
      &lt;contentitem&gt;
        &lt;title&gt;Song 1&lt;/title&gt;
        &lt;view&gt;Song 1&lt;/view&gt;
        &lt;english&gt;Song1.mp3&lt;/english&gt;
      &lt;/contentitem&gt;
    &lt;/item&gt;
    &lt;item&gt;
      &lt;contentitem&gt;
        &lt;title&gt;Song 2&lt;/title&gt;
        &lt;view&gt;Song 2&lt;/view&gt;
        &lt;english&gt;song2.mp3&lt;/english&gt;
      &lt;/contentitem&gt;
    &lt;/item&gt;
    &lt;item&gt;
      &lt;contentitem&gt;
        &lt;title&gt;Song 3&lt;/title&gt;
        &lt;view&gt;Song 3&lt;/view&gt;
        &lt;english&gt;song3.png&lt;/english&gt;
        &lt;spanish&gt;song3.png&lt;/spanish&gt;
      &lt;/contentitem&gt;
    &lt;/item&gt;
    &lt;item&gt;
      &lt;contentitem&gt;
        &lt;title&gt;Song 4&lt;/title&gt;
        &lt;view&gt;Song 4&lt;/view&gt;
        &lt;english&gt;song4.mp3&lt;/english&gt;
        &lt;spanish&gt;song4.mp3&lt;/spanish&gt;
      &lt;/contentitem&gt;
    &lt;/item&gt;
  &lt;/rss&gt;
  </code></pre>
  
  <p>Above is mine XML file I just want to play music using this XML file suppose I am visiting the 0th block App play song1.mp3 if I am visiting the 1st block App play song2.mp3 and so on... I wort the function like this.... </p>
  
  <pre><code>android.view.View.OnClickListener spanish = new android.view.View.OnClickListener() {
      public void onClick(View v) {
          MediaPlayer m = MediaPlayer.create(Formulae.this, R.drawable.song1.mp3);
          m.start();
      }
  };
  </code></pre>
  
  <p>Above code is static how can I make it dynamic (R.drawable.song1.mp3) according to selected block...and things comes form the XML. Please help me out Thank you.</p>