1

Possible Duplicate:
Parsing XML in Cocoa

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

Community
  • 1
  • 1
Ruchir Shah
  • 898
  • 3
  • 13
  • 31

2 Answers2

4

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

- (id)initWithContentsOfFile:(NSString *)aPath
Felix Lamouroux
  • 7,414
  • 29
  • 46
1

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.

Stefan Arentz
  • 34,311
  • 8
  • 67
  • 88