title: Parsing XML from URL in Swift
body: <p>I am brand new to parsing and cannot find any tutorial that isn't outdated and doesn't raise more questions. I have a simple xml file url I am trying to parse. The xml is very simple:</p>
  
  <pre><code>&lt;xml&gt;
      &lt;record&gt;
          &lt;EmpName&gt;A Employee&lt;/EmpName&gt;
          &lt;EmpPhone&gt;111-222-3333&lt;/EmpPhone&gt;
          &lt;EmpEmail&gt;a@employee.com&lt;/EmpEmail&gt;
          &lt;EmpAddress&gt;12345 Fake Street&lt;/EmpAddress&gt;
          &lt;EmpAddress1&gt;MyTown, Mystate ZIP&lt;/EmpAddress1&gt;
      &lt;/record&gt;
  &lt;/xml&gt;
  </code></pre>
  
  <p>And just wanted to save this as an NSDictionary (tags as keys and data as values). So far all I have been able to do successfully is print the xml string in the console with:</p>
  
  <pre class="lang-swift prettyprint-override"><code>let url = NSURL(string: "http://www.urlexample.com/file.xml")
  
  let task = NSURLSession.sharedSession().dataTaskWithURL(url!) {(data, response, error) in
          println(NSString(data: data, encoding: NSUTF8StringEncoding))
  }
  print(task)
  task.resume()
  </code></pre>
  
  <p>I have been through any online tutorials that I've found and are either outdated or much too complicated. Any help is appreciated.</p>