title: Handling an attribute of an XML element in Swift
body: <p>I want to read the <code>url</code> attribute from this element by using NSXMLParser:</p>
  
  <pre><code>&lt;enclosure url="http://www.marketoloji.com/wp-content/uploads/2015/01/IMG_1649-110x110.jpg" length="7113" type="image/jpg"/&gt;
  </code></pre>
  
  <p>I found this resource on Apple site but it's for obj C, not for Swift:</p>
  
  <p><a href="https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/XMLParsing/Articles/HandlingElements.html#//apple_ref/doc/uid/20002265-BCIJFGJI" rel="nofollow">https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/XMLParsing/Articles/HandlingElements.html#//apple_ref/doc/uid/20002265-BCIJFGJI</a></p>
  
  <p>I know that I should work with <code>attributeDict</code> dictionary in <code>didStartElement</code> method but dont know how. </p>