# AFOnoResponseSerializer **Repository Path**: ggluck/AFOnoResponseSerializer ## Basic Information - **Project Name**: AFOnoResponseSerializer - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-03-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README AFOnoResponseSerializer ======================= `AFOnoResponseSerializer` is an XML and HTML response serializer for AFNetworking 2.0, using [Ono](https://github.com/mattt/ono). ## Usage ### XML ```objective-c AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; manager.responseSerializer = [AFOnoResponseSerializer XMLResponseSerializer]; [manager GET:@"http://example.com/foo.xml" parameters:nil success:^(AFHTTPRequestOperation *operation, ONOXMLDocument *responseDocument) { for (ONOXMLElement *element in [responseDocument XPath:@"//item"]) { NSLog(@"%@", element); } } failure:nil]; ``` ### HTML ```objective-c AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; manager.responseSerializer = [AFOnoResponseSerializer HTMLResponseSerializer]; [manager GET:@"http://example.com/bar.html" parameters:nil success:^(AFHTTPRequestOperation *operation, ONOXMLDocument *responseDocument) { for (ONOXMLElement *element in [responseDocument CSS:@"body ul li"]) { NSLog(@"%@", element); } } failure:nil]; ``` --- ## Contact Mattt Thompson - http://github.com/mattt - http://twitter.com/mattt - m@mattt.me ## License AFOnoResponseSerializer is available under the MIT license. See the LICENSE file for more info.