Converting Objects to plist file then to data

I have an array of objects that consist of several strings, I need to push these up to a web service as XML data. What are the steps involved here? As far as I know I need to convert the objects to a plist file, then convert this file to NSData (?) I can't find anything online that really lays it out..

Any help would be greatly appreciated.


Another approach is JSON. SBJSON is very common and simple to use.

It's a two-liner to get a json string from your array. Then you'll create an NSURLRequest that represents the post and an NSURLConnection that performs the request. Lot's of resources for that on SO and elsewhere.

You can try this or this. I doubt plist files are what you want. All you need is to serialize your object into the xml format your web service requires.

Need Your Help

Show keyboard in Libgdx

android keyboard libgdx textfield

I am trying to show the keyboard on a android device when a textfield is clicked in LibGdx. But as far as I can see have to detect when the textfield is clicked manually and then show the keyboard by

Creating an organization in Bluemix

ibm-cloud organization

I am currently part of several organizations, which I have been previously invited to. I would like to create a new organization solely for myself. According to the documentation (