Parsing XML from a Https URL using NSXMLParser?
Parsing XML from a Https URL using NSXMLParser?
- Subject: Parsing XML from a Https URL using NSXMLParser?
- From: "Debajit Adhikary" <email@hidden>
- Date: Wed, 7 Jan 2009 03:24:45 -0800
I'm 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 HTTP URL's, but shows no result for an HTTPS
URL.
How could I fix this?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden