title: Getting attribute from XML with my script
body: <p>I try to read a specific value of a XML feed. Evertyhing is working but I want to read the "StartTime=" value too. </p>
  
  <p>This is the XML:</p>
  
  <pre><code>&lt;Program StartTime="17:00:00" EndTime="17:30:00"&gt;
  &lt;Name&gt;name&lt;/Name&gt;
  &lt;/Program&gt;
  </code></pre>
  
  <p>And this is the code:    </p>
  
  <pre><code>$.ajax({
          type: "GET",
          url: "./data.xml",
          dataType: "xml",
  
          error: function (e) {
              alert("An error occurred while processing XML file");
              console.log("XML reading Failed: ", e);
          },
  
          success: function (response) {
  
  
              $("ul").children().remove();
  
              $(response).find("Program").each(function () {
                  var _name = 'Program: ' + $(this).find('Name').text();
                  console.log(_name);
                  var _time = 'Time: ' + $(this).find('StartDateTime').text();
  
                  // add content to the HTML
                  $("ul").append('&lt;li&gt;' + _name + '&lt;/li&gt;');
                  $("ul").append('&lt;li&gt;' + _time + '&lt;/li&gt;');
  
              });
          }
      });
  }
  </code></pre>
  
  <p>I found some interesting information, but I can't actually use it...</p>