Re: NSKeyedArchiver XML output?
Re: NSKeyedArchiver XML output?
- Subject: Re: NSKeyedArchiver XML output?
- From: Graham Cox <email@hidden>
- Date: Mon, 8 Dec 2008 21:33:31 +1100
On 8 Dec 2008, at 9:24 pm, Devraj Mukherjee wrote:
I assume that the NSMutableData Object *data would have the XML
content. What do I need to do to get the XMLString out of that?
To write it to a file, just use NSData's -writeToFile:atomically:
method.
If you want to convert the NSData bytes to a string containing the
XML, I'm not sure how to do that, but:
[NSString initWithData: encoding:] looks promising...
But if I'm way off here others are sure to know.
hth,
Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden