views:

349

answers:

3

iPhone - Can we parse .plist(xml) file using NSXMLParser?

Thanks in advance.

Ruchir

+3  A: 

There are simpler ways of reading a plist file. You can use the following method for NSDictionary and NSArray:

- (id)initWithContentsOfFile:(NSString *)aPath
Felix
A: 

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.

St3fan