i want to store my data (which i am gathering through my app) to xml and then send it to my webspace. How should i do it??
Thanks
i want to store my data (which i am gathering through my app) to xml and then send it to my webspace. How should i do it??
Thanks
Your question contains several tasks.
Here is a solution for the upload part:
On sever-side you need to have a file-upload.
On iOS-side I suggest the usage of ASIHttpRequest
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setFile:@"path/to/ur/xml" forKey:@"file"];
edit
Creating a (simple) XML-file should be quite easy, as it can be done just with String-operations.
<contact name="%@">
to a string, with passing in the contacts name<address kind="%@">
with specifying kind as "work", "private", "other"</address>
</contact>
<adressbook>
in the beginning of the string and </addressbook>
at the end.