steve_x_nyc
New Member
i'm trying to parse one simple XML file with NSXMLParser...here is my code..\[code\] -(void) parseXml{ NSString *XmlPath=[[NSBundle mainBundle] pathForResource"myXML" ofType"xml"]; //NSLog(@"%@",XmlPath); path found! NSData *xml=[[NSData alloc] initWithContentsOfFile:XmlPath]; //NSLog(@"%@",Xml); outputs : xml in hexadecimal coded form self.Xmlparser=[[NSXMLParser alloc]initWithData:xml]; //NSLog(@"%@",self.Xmlparser); outputs : some hexadecimal code self.Xmlparser.delegate=self; NSLog(@"%@",self.Xmlparser); if([self.Xmlparser parse]) NSLog(@"PARSED"); else NSLog(@"NotPARSED"); }\[/code\]OUTput is "NotPARSED" ... what is going wrong?