You can save any of the "property list" classes (NSDictionary
,NSArray
,NSNumber
,NSString
,NSData
) as XML like this:NSData *data; data = [NSPropertyListSerialization dataFromPropertyList: notes format: NSPropertyListXMLFormat_v1_0 errorDescription: nil];Then write out the data usingNSFileManager
, or whatever other mechanism you wish.