I am trying to parse XML directly from an HTTPS URL as follows:
NSString *const URL = @"https://some/HTTPS/url"; NSURL* url = [NSURL URLWithString:URL]; NSXMLParser* parser = [[NSXMLParser alloc] initWithContentsOfURL:url]; [parser setDelegate:self]; [parser parse];
I have the following delegate method for the parser:
- (void) parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict { NSLog(@"Started parsing %@", elementName); }
This seems to work fine for the HTTP URL, but does not show the result for the HTTPS URL.
How can i fix this?
source share