forked from Mantle/Mantle
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed the convention so that all NSValueTransformers used by MTLXML…
…Adapter accept a NSArray of DDXMLNode objects. Also updated NSValueTransformer+MTLXMLTransformerAdditions to follow this convention in addition to several helper functions for parsing integers, NSURLs and NSDate objects. The default case if no NSValueTransformer has been specified, is to get the text of the first xml node returned by the specified xpath, just as before. This allows us to handle arrays of elements as selected by an xpath expressions without special case code. However now all code assuming a single xmlnode has to explicitly get the first element. This breaks backwards compatibility, so bumping up to version 0.2.0
- Loading branch information
1 parent
2a35c70
commit c2e571f
Showing
7 changed files
with
175 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters