Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
RKXMLReaderSerialization
RKTBXMLSerialization
======================

A RestKit XML serialization implementation using the XMLReader class.
A RestKit XML serialization implementation using the TBXML class.

## Installation

Install via Cocoapods or add the source files to your project. If you are installing directly from source, you will also need to obtain a copy of XMLReader from https://github.com/RestKit/XML-to-NSDictionary.
Install via Cocoapods or add the source files to your project. If you are installing directly from source, you will also need to obtain a copy of TBXML from https://github.com/mackoj/TBXML-NSDictionary.

Once installed, register the serialization in your app delegate (or wherever you handle RestKit setup):

``` objc
#import "RKXMLReaderSerialization.h"
#import "RKTBXMLSerialization.h"

[RKMIMETypeSerialization registerClass:[RKXMLReaderSerialization class] forMIMEType:@"application/xml"];
[RKMIMETypeSerialization registerClass:[RKTBXMLSerialization class] forMIMEType:@"application/xml"];

```

Expand Down
12 changes: 6 additions & 6 deletions RKXMLReaderSerialization.h → RKTBXMLSerialization.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// RKXMLReaderSerialization.h
// RKTBXMLSerialization.h
// RestKit
//
// Created by Christopher Swasey on 1/24/12.
Expand All @@ -20,10 +20,10 @@

/**
Provides a basic XML implementation using an adapted version
of the XMLReader class by "Insert-Witty-Name" available at:
https://github.com/RestKit/XML-to-NSDictionary
of the TBXML class by "Insert-Witty-Name" available at:
https://github.com/mackoj/TBXML-NSDictionary

`RKXMLReaderSerialization` will parse an XML document into an NSDictionary
`RKTBXMLSerialization` will parse an XML document into an NSDictionary
representation suitable for use with RestKit's key-value coding based
object mapping implementation.

Expand All @@ -34,8 +34,8 @@
the parsed dictionary at the `@"text"` key.
*/

#import "XMLReader.h"
#import "TBXML+NSDictionary.h"
#import <RestKit/Support/RKSerialization.h>

@interface RKXMLReaderSerialization : NSObject <RKSerialization>
@interface RKTBXMLSerialization : NSObject <RKSerialization>
@end
6 changes: 3 additions & 3 deletions RKXMLReaderSerialization.m → RKTBXMLSerialization.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
// limitations under the License.
//

#import "RKXMLReaderSerialization.h"
#import "RKTBXMLSerialization.h"

@implementation RKXMLReaderSerialization
@implementation RKTBXMLSerialization

+ (id)objectFromData:(NSData *)data error:(NSError **)error
{
return [XMLReader dictionaryForXMLData:data error:error];
return [TBXML dictionaryWithXMLData:data error:error];
}

+ (NSData *)dataFromObject:(id)object error:(NSError **)error
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Pod::Spec.new do |s|
s.name = "RKXMLReaderSerialization"
s.name = "RKTBXMLSerialization"
s.version = "0.20.0"
s.summary = "A RestKit serialization format implementation for XML using XMLReader."
s.homepage = "https://github.com/RestKit/RKXMLReaderSerialization"
s.homepage = "https://github.com/segiddins/RKTBXMLSerialization"
s.license = { :type => 'Apache', :file => 'LICENSE'}
s.author = { "Blake Watters" => "blakewatters@gmail.com" }

s.requires_arc = true
s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
s.source = { :git => "https://github.com/RestKit/RKXMLReaderSerialization.git" }

s.source = { :git => "https://github.com/RestKit/RKTBXMLSerialization.git" }
s.source_files = '*.{h,m}'

s.dependency 'RestKit', '>= 0.20.0dev'
s.dependency 'XMLReader', '>= 0.0.2'
s.dependency 'TBXML+NSDictionary', '>= 0.0.1'
end