title: How to convert .plist xml string to NSDictionary
body: <p>I downloaded <code>.plist</code> file with <code>Swift</code> and <code>Alamofire</code> and I want to read values of .plist file.</p>
  
  <pre><code>if let url = URL(string: urlString) {
      Alamofire.download(url).responseData(completionHandler: { response in
          if response.result.isSuccess {
              if let plistData = response.result.value {
                  if let plistXml = String(data: data, encoding: .utf8) {
                      // plistXml contains the actual plist contents as String object.
                  }
  
              }
          }
      })
  }
  </code></pre>
  
  <p>I have to objects containing my downloaded .plist file:</p>
  
  <ul>
  <li>plistData: the downloaded Data object</li>
  <li>plistXml: String object from plistData</li>
  </ul>
  
  <p>Using any of these objects, I want to convert the plist fie to NSDictionary or Dictionary.</p>