iPhone - Can we parse .plist(xml) file using NSXMLParser? [duplicate]
-
18-09-2019 - |
Question
Possible Duplicate:
Parsing XML in Cocoa
iPhone - Can we parse .plist(xml) file using NSXMLParser?
Solution
You can absolutely use the NSXMLParser to parse an xml plist file. However, it is much, much
, much, easier to simply use the NSPropertyListSerialization
class to do that.
OTHER TIPS
There are simpler ways of reading a plist file. You can use the following method for NSDictionary
and NSArray
:
- (id)initWithContentsOfFile:(NSString *)aPath
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow