开发者

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

开发者 https://www.devze.com 2022-12-19 19:48 出处:网络
This question already has an answer here: Closed 10 years ago. Possible Duplicate: Parsing XML in Cocoa 开发者_JAVA百科
This question already has an answer here: Closed 10 years ago.

Possible Duplicate:

Parsing XML in Cocoa

开发者_JAVA百科

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


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

- (id)initWithContentsOfFile:(NSString *)aPath


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号