Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fixed example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
ikovalisko committed Nov 12, 2014
1 parent 1e7de0d commit 20ee67f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ AFOnoResponseSerializer
```objective-c
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
manager.responseSerializer = [AFOnoResponseSerializer XMLResponseSerializer];
[manager GET:@"http://example.com/foo.xml" parameters:nil success:^(NSHTTPURLResponse *response, ONOXMLDocument *responseDocument) {
[manager GET:@"http://example.com/foo.xml" parameters:nil success:^(AFHTTPRequestOperation *operation, ONOXMLDocument *responseDocument) {
for (ONOXMLElement *element in [responseDocument XPath:@"//item"]) {
NSLog(@"%@", element);
}
Expand All @@ -22,7 +22,7 @@ manager.responseSerializer = [AFOnoResponseSerializer XMLResponseSerializer];
```objective-c
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
manager.responseSerializer = [AFOnoResponseSerializer HTMLResponseSerializer];
[manager GET:@"http://example.com/bar.html" parameters:nil success:^(NSHTTPURLResponse *response, ONOXMLDocument *responseDocument) {
[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);
}
Expand Down

0 comments on commit 20ee67f

Please sign in to comment.