title: How can I retrieve local files with NSURL?
body: <p>I'm here with a question that probably has a really simple answer that I am overlooking... how can I retrieve local files with NSURL? I have this here:</p>
  
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
      var urlpath = NSBundle.mainBundle().pathForResource("bpreg", ofType: "xml")
      let url:NSURL = NSURL(string: urlpath!)!
      parser = NSXMLParser(contentsOfURL: url)!
      parser.delegate = self
      parser.parse()
  }
  </code></pre>
  
  <p>But after it successfully builds it hangs on var urlpath. I've searched around and tried a few suggestions here and other places to no avail. Please help? :(</p>