You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFGDataXMLRequestOperation is an extension for AFNetworking that provides an interface to parse XML using GDataXML-HTML.
To use this code you have to manually add GDataXML and AFNetworking to your Project
This is still in early stages of development, so proceed with caution when using this in a production application. Any bug reports, feature requests, or general feedback at this point would be greatly appreciated.
Example Usage
AFGDataXMLRequestOperation *operation = [AFGDataXMLRequestOperation XMLDocumentRequestOperationWithRequest:[NSURLRequestrequestWithURL:[NSURLURLWithString:@"https://legalindexes.indoff.com/sitemap.xml"]] success:^(NSURLRequest *request, NSHTTPURLResponse *response, GDataXMLDocument *XMLDocument) {
NSLog(@"XMLDocument: %@", XMLDocument);
} failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, GDataXMLDocument *XMLDocument) {
NSLog(@"Failure!");
}];
// Just start the operation on a background thread
[operation start];
// Or put it in a queue, if you want to handle many operations in a rowNSOperationQueue *queue = [[[NSOperationQueuealloc] init] autorelease];
[queue addOperation:operation];
ARC
Neither AFNetworking or GDataXML support ARC at the moment
If your code is using Automatic Reference Counting (ARC) do the following:
Select Build Phases tab.
Expand Compile Sources.
Select each file of AFNetworking and GDataXML then press Enter.
On the small input box that pops-out, enter -fno-objc-arc.