Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jansanz/afrapturexmlrequestoperation

RaptureXML support for AFNetworking's AFHTTPClient
https://github.com/jansanz/afrapturexmlrequestoperation

afnetworking ios objective-c xml

Last synced: 9 days ago
JSON representation

RaptureXML support for AFNetworking's AFHTTPClient

Awesome Lists containing this project

README

        

AFRaptureXMLRequestOperation
============================

AFRaptureXMLRequestOperation is an extension for [AFNetworking](http://github.com/AFNetworking/AFNetworking/) that provides an
interface to parse XML using [RaptureXML](https://github.com/ZaBlanc/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];