title: Parse XML data in swift
body: <p>It's my first iOS application, and I kinda have some trouble with getting data from a XML. I need to get the song name and the artist from a XML file that looks like this: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Schedule System="Jazler"&gt;
    &lt;Event status="happening" startTime="19:14:30" eventType="song"&gt;
      &lt;Announcement Display="Now On Air:"/&gt;
      &lt;Song title="E timpul"&gt;
        &lt;Artist name="Revers"&gt;
        &lt;/Artist&gt;
        &lt;Jazler ID="16490"/&gt;
        &lt;PlayLister ID=""/&gt;
        &lt;Media runTime="03:03"/&gt;
        &lt;Expire Time="19:17:33"/&gt;
      &lt;/Song&gt;
    &lt;/Event&gt;
  &lt;/Schedule&gt;
  </code></pre>
  
  <p>Until now I think I created the parser, but I have no idea how to get the data from it, and the online tutorials are confusing me a bit...</p>
  
  <pre><code>self.parser = XMLParser(contentsOf: URL(string:"http://localhost/jazler/NowOnAir.xml")!)!
  self.parser.delegate = self as? XMLParserDelegate
  
  let success:Bool = self.parser.parse()
  if success {
      print("success")
  
  } else {
      print("parse failure!")
  }
  </code></pre>
  
  <p>Your help is much appreciated &amp; thanks in advance.</p>