Browse files

Merge pull request #50 from GBH/patch-1

Fixed code indent
  • Loading branch information...
2 parents cd9ed78 + 32eaf94 commit 4b82eb3e3d2ccde60ebdd07187f0d72cd046b77c @ZaBlanc committed Jan 15, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
6 README.md
@@ -102,9 +102,9 @@ From there, we can process the individual players and be happy. Now, this is al
Your block is passed an RXMLElement representing each player in just one line! Alternatively, you could have shortened it with:
-[rootXML iterate:@"players.player" usingBlock: ^(RXMLElement *player) {
- NSLog(@"Player: %@ (#%@)", [player child:@"name"], [player attribute:@"number"]);
-}];
+ [rootXML iterate:@"players.player" usingBlock: ^(RXMLElement *player) {
+ NSLog(@"Player: %@ (#%@)", [player child:@"name"], [player attribute:@"number"]);
+ }];
This also works because RXMLElement#description returns the text of the tag. Query paths are even more powerful with wildcards. Let's say we wanted the name of every person on the team, player or coach. We use the wildcard to get it:

0 comments on commit 4b82eb3

Please sign in to comment.