Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert XML string to JSON using iPhone sdk

I am implementing a client based application. In that I have an xml string. I need to convert it to JSON format and send to the server. I have no idea on converting this. Can you guys please suggest me any documentation or idea to this?

like image 870
ChandraSekhar Avatar asked Dec 21 '22 12:12

ChandraSekhar


1 Answers

Step #1: Read XML into NSDictionary: http://troybrant.net/blog/2010/09/simple-xml-to-nsdictionary-converter/

Step #2: Convert NSDictionary into JSON: http://code.google.com/p/json-framework/

like image 75
Steve Avatar answered Dec 24 '22 01:12

Steve