AFRaptureXMLRequestOperation 1.0.3

AFRaptureXMLRequestOperation 1.0.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2015

Maintained by Unclaimed.



 
Depends on:
AFNetworking~> 2.0.2
RaptureXML~> 1.0.1
 

  • By
  • Jan Sanchez

AFRaptureXMLRequestOperation is an extension for AFNetworking that provides an interface to parse XML using RaptureXML. This uses ARC.

Example Usage

AFRaptureXMLRequestOperation *operation = [AFRaptureXMLRequestOperation XMLParserRequestOperationWithRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://legalindexes.indoff.com/sitemap.xml"]] success:^(NSURLRequest *request, NSHTTPURLResponse *response, RXMLElement *XMLElement) {
   // Do something with XMLElement 
} failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, RXMLElement *XMLElement) {
    // Handle Error
}];

[operation start];