摘要: 1 -(void)openXMLFile2 {3 NSString *path=[[NSBundle mainBundle] pathForResource:@"persons" ofType:@"xml"];4 NSURL *url=[NSURL fileURLWithPath:path];5 6 self.parser=[[NSXMLParser alloc] initWithContentsOfURL:url];7 self.parser.delegate=self;8 [self.parser parse];9 } 阅读全文
posted @ 2012-04-18 23:05 PH 阅读(152) 评论(0) 推荐(0)