Tuesday 4 September 2007

ebay xml ruby cocoa

So I've been trying to figure out how to take out the ruby xml stuff I've been using for ebay and change it to pure Cocoa/ObjC.
Whats nice about the api I was using is the syntax...
search_response.search_items.item.price etc

I'm trying to duplicate this in cocoa

I think the easiest way may simply be to load the xml into a nested NSDictionary
Then I can use..

search_items = [ search_response valueForKeyPath:@"search_items"]

But I also wondered about looking at soap and wdsl. Its a shame I dont have the leopard dev kit, there might be stuff in there that would be nicer.

Im pretty new to xml, and erm cocoa so its all err new..

No comments: