title: Xcode: error Class XYZ does not implement the 'NSXMLParserDelegate' protocol
body: <p>I get this error message regarding the line "[parser setDelegate:self];" below:</p>
  
  <p>Class 'ProcessiController' does not implement the 'NSXMLParserDelegate' protocol...</p>
  
  <p>This is the code:</p>
  
  <pre><code>&lt;!-- language: C-objective --&gt;
  
  @implementation ProcessiController
  
  
  -(void)awakeFromNib
  {
      NSString *dataFilePath = [[NSBundle mainBundle] pathForResource:@"processi" ofType:@"xml"];
      stories = [[NSMutableArray alloc]init];
      parser = [[NSXMLParser alloc] initWithData:[NSData dataWithContentsOfFile:dataFilePath]];
      [parser setDelegate:self];
      [parser parse];
      NSLog(@"file trovato e caricato");
  
  }
  </code></pre>
  
  <p>And this is the .h file:</p>
  
  <pre><code>&lt;!-- language: C-objective --&gt;
  
  #import &lt;UIKit/UIKit.h&gt;
  #import "CustomCellProcessiController.h"
  #import "GenericaProcessiController.h"
  
  
  @interface ProcessiController : UITableViewController {
  
  
      NSXMLParser *parser; //utilizzato per il parsing
      NSMutableArray *stories; 
      NSMutableDictionary *item;
  
      NSString *currentElement;
      NSMutableString *currentName;
      NSMutableString *fileName;
  
      UIView *myHeader;
  
  }
  </code></pre>
  
  <p>Thanks for any contribution! However, it will be helpful only if explained step by step what to modify since I have no programming knowledge (but am brave enough to tinker with the code :-) )</p>