title: parsing xml with AFNetworking and NSXMLParser
body: <p>I need to parse xml string from remote URL, and I want to use AFNetworking. This is my code:</p>
  
  <pre><code>NSURL *url2 = [NSURL URLWithString:@"REMOTEXMLURL"];
  NSURLRequest *request2 = [NSURLRequest requestWithURL:url2];
  
  AFXMLRequestOperation *operation2 = [AFXMLRequestOperation XMLParserRequestOperationWithRequest:request2
                                          success:^(NSURLRequest *request2, NSHTTPURLResponse *response2, NSXMLParser *XMLParser) {
                                              NSLog(@"TESTING PARSING");
                                              [XMLParser setDelegate:self];
                                              [XMLParser parse];
                                          } failure:^(NSURLRequest *request2, NSHTTPURLResponse *response2, NSError *error2, NSXMLParser *XMLParser) {
                                          NSLog(@"%@", [error2 userInfo]);
                                          }];
  [operation2 start];
  </code></pre>
  
  <p>Is it correct? And now that I have *XMLParser, can I avoid to use NSXMLParser delegate methods, like:</p>
  
  <pre><code>-(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict
  
  -(void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName
  
  -(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
  </code></pre>
  
  <p>or I'm constrained to use that? In other words, *XMLParser object initialized with AFNetworking and AFXMLRequestOperation must be passed to delegate methods, or can I parse it in another way (like AFJSONRequestOperation, into AFNetworking operation)? Thank you!</p>