• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Parsing XML from a Https URL using NSXMLParser?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Parsing XML from a Https URL using NSXMLParser?
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: RE: Programmatically locking user screen [Solved]
  • Next by Date: Re: Cocoa Client/Server App
  • Previous by thread: Re: NSColorWell----please help
  • Next by thread: Re: Parsing XML from a Https URL using NSXMLParser?
  • Index(es):
    • Date
    • Thread