title: NSXMLDelegate in Swift issues
body: <p>I am trying to implement an NSXMLParserDelegate in Swift but I am having issues using the attributes dictionary in some of the delegate methods. For instance, in <code>parser:didStartElement:</code>:</p>
  
  <pre><code>func parser(parser: NSXMLParser!, didStartElement elementName: String!, namespaceURI: String!, qualifiedName qName: String!, attributes attributeDict: [NSObject : AnyObject]!) {
  </code></pre>
  
  <p>trying to access attributeDict values like:</p>
  
  <pre><code>if self.feedType == FeedType.RSS {
      self.insideLink = true
  } else {
      if (String(attributeDict["rel"]) == "alternate") &amp;&amp; (String(attributeDict["type"]) == "text/html") {
          self.link = String(attributeDict["href"])
          self.insideLink = false
          self.doneWithLink = true
      }
  }
  </code></pre>
  
  <p>I get an error message: "'String' is not convertible to 'FeedType'".</p>
  
  <pre><code>enum FeedType:String {
  
      case ATOM = "feed"
      case RSS = "rss"
  
  }
  
  class FeedParser:NSObject, NSXMLParserDelegate {
  
      var feedType:FeedType?
  </code></pre>
  
  <p>Is an error. Same for a dozen other variations on the theme... any insights?</p>
  
  <p>I guess the question is how to properly use the key / value pairs in <code>attributeDict</code> which are of type <code>[NSObject: AnyObject]</code>?</p>