title: NSXMLParser initWithContentsOfURL timeout
body: <p>How can I set a timeout when I am parsing a feed using initWithContentsOfURL.  Sometimes our feeds return a blank response and then it will just try to parse the feed forever.  I want to set a timeout of 30 seconds or so that will pop up a UIAlertView and then try and reparse the feed.</p>
  
  <pre><code>    NSURL *feedURL = [[NSURL alloc] initWithString:URL];
      NSXMLParser *parser = [[NSXMLParser alloc] initWithContentsOfURL:feedURL];
      [parser setDelegate:self];
      [parser setShouldProcessNamespaces:NO];
      [parser setShouldReportNamespacePrefixes:NO];
      [parser setShouldResolveExternalEntities:NO];
  
      [parser parse];
  </code></pre>