title: How can I parse an XML tag that has more than one attribute?
body: <p>I need help getting this XML to format so I can place it into an HTML element.</p>
  
  <p>Here is my XML that is generated by the software:</p>
  
  <pre><code>&lt;event status="coming up"&gt;
      &lt;song title="Summer Of '69"&gt;
          &lt;artist name="Bryan Adams" id="" url=""&gt;
              &lt;info starttime="03:28:44" jazlerid="1997" playlisterid=""&gt; 
                  &lt;media runtime="03:27"&gt;
                      &lt;songurl&gt;&lt;/songurl&gt;
                      &lt;songbarcode&gt;&lt;/songbarcode&gt;
                      &lt;songcdkey&gt;&lt;/songcdkey&gt;
                  &lt;/media&gt;
              &lt;/info&gt;
          &lt;/artist&gt;
      &lt;/song&gt;
      &lt;song title="Doing It All For My Baby"&gt;
          &lt;artist name="Huey Lewis &amp;amp; The News" id="" url=""&gt;
              &lt;info starttime="03:32:11" jazlerid="2312" playlisterid=""&gt; 
                  &lt;media runtime="03:25"&gt;
                      &lt;songurl&gt;&lt;/songurl&gt;
                      &lt;songbarcode&gt;&lt;/songbarcode&gt;
                      &lt;songcdkey&gt;&lt;/songcdkey&gt;
                  &lt;/media&gt;
              &lt;/info&gt;
          &lt;/artist&gt;
      &lt;/song&gt;
      &lt;song title="Freeway Of Love"&gt;
          &lt;artist name="Aretha Franklin" id="" url=""&gt;
              &lt;info starttime="03:35:36" jazlerid="1843" playlisterid=""&gt; 
                  &lt;media runtime="05:44"&gt;
                      &lt;songurl&gt;&lt;/songurl&gt;
                      &lt;songbarcode&gt;&lt;/songbarcode&gt;
                      &lt;songcdkey&gt;&lt;/songcdkey&gt;
                  &lt;/media&gt;
              &lt;/info&gt;
          &lt;/artist&gt;
      &lt;/song&gt;
      &lt;song title="All I Need Is A Miracle"&gt;
          &lt;artist name="Mike &amp;amp; The Mechanics" id="" url=""&gt;
              &lt;info starttime="03:41:21" jazlerid="2538" playlisterid=""&gt;   
                  &lt;media runtime="04:03"&gt;
                      &lt;songurl&gt;&lt;/songurl&gt;
                      &lt;songbarcode&gt;&lt;/songbarcode&gt;
                      &lt;songcdkey&gt;&lt;/songcdkey&gt;
                  &lt;/media&gt;
              &lt;/info&gt;
          &lt;/artist&gt;
      &lt;/song&gt;
      &lt;song title="Sweet Nothing PLAY !!!!"&gt;
          &lt;artist name="Calvin Harris with Florance Welsh" id="" url=""&gt;
              &lt;info starttime="03:45:33" jazlerid="5362" playlisterid=""&gt;   
                  &lt;media runtime="03:26"&gt;
                      &lt;songurl&gt;&lt;/songurl&gt;
                      &lt;songbarcode&gt;&lt;/songbarcode&gt;
                      &lt;songcdkey&gt;&lt;/songcdkey&gt;
                  &lt;/media&gt;
              &lt;/info&gt;
          &lt;/artist&gt;
      &lt;/song&gt;
  &lt;/event&gt;
  </code></pre>
  
  <p>I know how to get it into my web page with this code:</p>
  
  <pre><code>  function loadnext() 
    {
      var xhttp = new XMLHttpRequest();
      xhttp.onreadystatechange = function() {
  
      if (this.readyState == 4 &amp;&amp; this.status == 200) 
      {
        document.getElementById('ntn').innerHTML = this.responseText;
      }
    };
    xhttp.open("GET", "AirPlayNext.xml"+ ((/\?/).test("AirPlayNext.xml") ? "&amp;" : "?") + (new Date()).getTime());
    xhttp.setRequestHeader( 'CacheControl', false );
    xhttp.send();
  }
  </code></pre>
  
  <p>The code above gets the data and inserts into a HTML tag. I also added a date routine to force update (which prevents caching of the xhr in all browsers)</p>
  
  <p>I know how to parse one attribute, but how do you parse all of the attributes out of a single xml tag?</p>